mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2003
Posts: 2
B
biase Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
B
Joined: Oct 2003
Posts: 2
i use $regex(,/[]{N}/g) on channel flood protection
but sometimes it didnt work...
can someone help me

Last edited by biase; 16/10/03 04:07 AM.

print "Life for" ($life=="short") ? "pray" : "enjoy";
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Well assuming that you've put the 'N' there to represent any number and that you are actually putting some input into the 1st parameter then the problem with the expression is that you have no characters in your character class (the [ ]).


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Oct 2003
Posts: 2
B
biase Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
B
Joined: Oct 2003
Posts: 2
well the $regex i use like this example
Quote:
$regex($1-,/[[:cntrl:]]{50}/g)

sometimes the command didnt work
my head spining


print "Life for" ($life=="short") ? "pray" : "enjoy";
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Note that the pattern [[:cntrl:]]{50} looks for 50 continuous codes inside the text, so it will likely fail if there's something between them.

Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
if $regex($1-,/[[:cntrl:]]/g) > 49 { }


Link Copied to Clipboard