mIRC Homepage
Posted By: Chrislog Regex issue - 04/02/11 08:31 PM
Could someone help me please change this Regex to work in the mIRC Highlight Feature?

I currently have this in a script, but the script is slowing everything down, I was hoping to put it into mIRC Highlights, but the regex when I paste it there doesn't work and gets cut off..

This is the regex:
Code:
/^(.*\s)?"? $+ $me $+ (topher|tofer|sy|syboy|so)? $+ ([,:(\s)\?\/;"\^\)\.~#\*!]|\s|$).*/Si


Any help would be great thanks!
Posted By: FroggieDaFrog Re: Regex issue - 04/02/11 11:02 PM
Not sure if u can have a regex pattern in highlight BUUT
Code:
\b $+ $me $+ (topher|tofer|sy|syboy|so)?\b/i



though instead of $Me u might want to use:
Code:
\Q $+ $replacecs($me,\E,\E\\E\Q) $+ \E

Posted By: Tomao Re: Regex issue - 05/02/11 01:28 AM
There is a property for the identifier $highlight(N/text).regex

© mIRC Discussion Forums