mIRC Homepage
Posted By: v0id /filter and regex - 19/06/03 12:50 AM
I'm not sure if this is a bug or just a missing feature, but it seems that one is unable to do a case-insensitive match while using the regex switch with /filter.
Posted By: Raccoon Re: /filter and regex - 19/06/03 03:45 AM
Solution.

/filter and $hregex (and probably others) don't interpret flags that appear outside the delimiters. For whatever reason, mIRC simply strips the delimiters and any flags that follow. eg: /i

The same flags can be used inside the expression though, placed before the pattern you wish for it to effect. This even gives you more control, allowing you to make just part of the expression case insensitive (i *think*, haven't tested it and don't know how to close/terminate it either.)

/expression/i == /(?i)expression/

- Raccoon
Posted By: codemastr Re: /filter and regex - 19/06/03 03:03 PM
Yes you can use it to just make part of the expression case-insensitive:

(?i)this-is-case-insensitive(?-i)this-is-case-sensitive

Just add a - in front to remove the flag.
© mIRC Discussion Forums