mIRC Home    About    Download    Register    News    Help

Print Thread
#229437 04/02/11 08:31 PM
Joined: Aug 2010
Posts: 21
C
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!

Chrislog #229439 04/02/11 11:02 PM
Joined: Apr 2010
Posts: 969
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
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
Chrislog #229444 05/02/11 01:28 AM
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
There is a property for the identifier $highlight(N/text).regex



Link Copied to Clipboard