im trying to get this regular expression to work but im having problems with javascript exception because of the case sensitive.
I have my regular expression in my model and some words should not be able to write such as "and" "or" "ok" "not. but if i write Andy it should work
[RegularExpression(@"^(?:(?!\b(?:AND|O[RK]|NOT|FALSE|TRUE)\b)[\wåäöÅÄÖ\._])*$\i", ErrorMessageResourceName
i can't use the regularoption ( Regex.ignoreCase) so im trying to use \i but getting javascript error.
what am i doing wrong?