mIRC Home    About    Download    Register    News    Help

Print Thread
#144341 09/03/06 01:02 PM
Joined: Mar 2006
Posts: 11
A
Abe Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Mar 2006
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

#144342 09/03/06 01:09 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Code:
on $*:text:/[l1][3e]{2}[t7]/:#gr-chat:{  }

#144343 09/03/06 01:16 PM
Joined: Mar 2006
Posts: 11
A
Abe Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Mar 2006
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)

#144344 09/03/06 01:21 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Code:
on *:text:*:#gr-chat:{  
  if (!$regex($1-,/[l1][3e]+[t7]/)) return
}


Now it matches leeeeeeeet, le3e3e3e7, etc.

#144345 09/03/06 01:26 PM
Joined: Mar 2006
Posts: 11
A
Abe Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Mar 2006
Posts: 11
Thanks a lot, hixxy. smile

Last question;

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

#144346 09/03/06 01:29 PM
Joined: Feb 2005
Posts: 681
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
//echo -a $regex(l-3-3-t,/[l1][3e]+[t7]/))

0

#144347 09/03/06 01:37 PM
Joined: Mar 2006
Posts: 11
A
Abe Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Mar 2006
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?

Last edited by Abe; 09/03/06 01:38 PM.
#144348 09/03/06 02:02 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Code:
if ($regex($1-,/[l1][.\-_]?(?:[e3][.\-_]?)+[t7]/)) return


Link Copied to Clipboard