I have been wondering, how to use case insensitive regular expression for a response validation in a form where there are different possible answers?
I have tried:
and it really works, but I want it to be case insensitive.
Is there an easiest way to make it Case Insensitive?
[?i(name1|name2|name3)]– it didn't work, and it accepts names that are not in the parenthesis.
[?i](name1|name2|name3)– same as what happened to number 1
Any help would be very much appreciated!