How do I make this CASE INSENSATIVE?
-
(?!^.*((Practice)|(ARCHIVE)|(CpSystem)|(RESTORE)).*$)(^\s*\w*) Want to make Practice, Archive, CPSystem, and Restore case insensative. I tried (?i)(?!^.*((Practice)|(ARCHIVE)|(CpSystem)|(RESTORE)).*$)(^\s*\w*) And (?!^.*((?i)(Practice)|(?i)(ARCHIVE)|(?i)(CpSystem)|(?i)(RESTORE)).*$)(^\s*\w*) Neither worked. Any advise? D
-
(?!^.*((Practice)|(ARCHIVE)|(CpSystem)|(RESTORE)).*$)(^\s*\w*) Want to make Practice, Archive, CPSystem, and Restore case insensative. I tried (?i)(?!^.*((Practice)|(ARCHIVE)|(CpSystem)|(RESTORE)).*$)(^\s*\w*) And (?!^.*((?i)(Practice)|(?i)(ARCHIVE)|(?i)(CpSystem)|(?i)(RESTORE)).*$)(^\s*\w*) Neither worked. Any advise? D
If I was using perl I would just use the 'i' modifier on the expression itself so after the '/'. But following might help depending on where the regular expression is actually running. Can you make just part of a regex case-insensitive? - Stack Overflow[^]