mIRC Home    About    Download    Register    News    Help

Print Thread
Regex question #187297 03/10/07 12:11 AM
Joined: Aug 2005
Posts: 1,052
L
Lpfix5 Offline OP
Hoopy frood
OP Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Do the on "events" use pure regular expressions in them since we can do something like on *:TEXT:$(blah $blah *):#:{

like on *:TEXT:\b.......:#:{


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Re: Regex question [Re: Lpfix5] #187298 03/10/07 12:33 AM
Joined: Feb 2005
Posts: 342
R
Rand Offline
Fjord artisan
Offline
Fjord artisan
R
Joined: Feb 2005
Posts: 342
You would need to use "$"

Such as: on $*:text:/\bhi\b/:#:{ }

Re: Regex question [Re: Rand] #187301 03/10/07 03:50 AM
Joined: Aug 2005
Posts: 1,052
L
Lpfix5 Offline OP
Hoopy frood
OP Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Originally Posted By: Rand
You would need to use "$"

Such as: on $*:text:/\bhi\b/:#:{ }


cool thanks


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }