Hi!
Im trying to program a new plugin that will recognice seratin words and replace them with some other stuff. However, I am having problems getting the Lexer to match both upper and lower case. For example, if I use this pattern
\b(?:one|two|three)\b
One or ONE isnt found. I have tried adding the (?i) option on different places, but it dosent seem to work. Where is it supposed to be? Is it working with DokuWiki? Is there any other way of making the match case insensitive?
Offcourse it could be made by using the code
\b(?:[Oo][Nn][Ee]|[Tt][Ww][Oo]|[Tt][Hh][Rr][Ee][Ee])\b
But it would look pretty uggly, and get very long since there are many words im trying to match.
Thankfull for all help.