(?i) inside the pattern, case-insensitive matching begins, (?-i) completes it. I.e
(?i)foo(?-i)bar
corresponds to FOObar , but not FOObar .
EDIT: I had to say that (?-i) triggers a case-sensitive match - if you want the whole pattern to be case-insensitive, then you don't need to “complete” (?i) .
stevemegson Oct 18 '09 at 1:27 2009-10-18 01:27
source share