mIRC Home    About    Download    Register    News    Help

Print Thread
Regex issue #229437 04/02/11 08:31 PM
Joined: Aug 2010
Posts: 21
C
Chrislog Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Aug 2010
Posts: 21
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!

Re: Regex issue [Re: Chrislog] #229439 04/02/11 11:02 PM
Joined: Apr 2010
Posts: 943
F
FroggieDaFrog Offline
Hoopy frood
Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 943
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



I am SReject
My Stuff
Re: Regex issue [Re: Chrislog] #229444 05/02/11 01:28 AM
Joined: Jul 2007
Posts: 1,129
T
Tomao Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
There is a property for the identifier $highlight(N/text).regex