mIRC Home    About    Download    Register    News    Help

Topic Options
#144341 - 09/03/06 01:02 PM leet regex
Abe Offline
Pikka bird

Registered: 09/03/06
Posts: 11
Hello there,

Is there a regex for catching "leet" in various way?
Example; leet/l33t/l3et/1337/etc.

Code:
on *:TEXT:*:#gr-chat: {
 if (!$regex($1-,  ?  )) return
}


Tyia. smile

Top
#144342 - 09/03/06 01:09 PM Re: leet regex
hixxy Offline
Hoopy frood

Registered: 06/09/05
Posts: 2876
Code:
on $*:text:/[l1][3e]{2}[t7]/:#gr-chat:{  }

Top
#144343 - 09/03/06 01:16 PM Re: leet regex
Abe Offline
Pikka bird

Registered: 09/03/06
Posts: 11
thanks =)
Allthough, will that also catch leeeeet?

And, is it possible to put it in a regex?

(cause my script is more than show, i just did a basic example)

Top
#144344 - 09/03/06 01:21 PM Re: leet regex
hixxy Offline
Hoopy frood

Registered: 06/09/05
Posts: 2876
Code:
on *:text:*:#gr-chat:{  
  if (!$regex($1-,/[l1][3e]+[t7]/)) return
}


Now it matches leeeeeeeet, le3e3e3e7, etc.

Top
#144345 - 09/03/06 01:26 PM Re: leet regex
Abe Offline
Pikka bird

Registered: 09/03/06
Posts: 11
Thanks a lot, hixxy. smile

Last question;

Does it also match text like l-3-3-t ? smile

Top
#144346 - 09/03/06 01:29 PM Re: leet regex
mIRCManiac Offline
Hoopy frood

Registered: 05/02/05
Posts: 681
Loc: Your dreams ;)
//echo -a $regex(l-3-3-t,/[l1][3e]+[t7]/))

0
_________________________
mIRCManiac

Top
#144347 - 09/03/06 01:37 PM Re: leet regex
Abe Offline
Pikka bird

Registered: 09/03/06
Posts: 11
Hm tried a few things...

Code:
if ($regex($1-,/[l1._-]+[3e._-]+[t7]/)) return


That one seems to catch every possible leets!
But is it actually correct?


Edited by Abe (09/03/06 01:38 PM)

Top
#144348 - 09/03/06 02:02 PM Re: leet regex
hixxy Offline
Hoopy frood

Registered: 06/09/05
Posts: 2876
Code:
if ($regex($1-,/[l1][.\-_]?(?:[e3][.\-_]?)+[t7]/)) return

Top