In the Japanese edition of "Regular Expressions Cookbook", there are two approaches.
mode toggle "i"
In the page #28, surround the word to ignore between (?i) and (?-i):/(?i)a(?-i)bc(?i)d(?-i)/
group with modifier "i"
In the page #76, use modifier "i" for the word to ignore:/(?i:a)bc(?i:d)/
No comments:
Post a Comment