I currently have a regular expression that allows for the string 'red' in lowercase, uppercase and with spaces surrounding it:
/red/i
How would this regular expression be extended to check for multiple words such as rot, rouge, red and rojo.?
I am using a Javascript plugin which does not support flags. This regex also takes the same form in JavaScript in a none literal format, how would this be extended in the same way?
^\s*[Rr][Ee][Dd]\s*$