mIRC Home    About    Download    Register    News    Help

Print Thread
#200609 08/06/08 01:50 PM
Joined: Oct 2007
Posts: 102
B
bcancer Offline OP
Vogon poet
OP Offline
Vogon poet
B
Joined: Oct 2007
Posts: 102
I want to kick only if the nick is not longer then 4 letters??
($regex($nick,/^[a-z]{1}[0-9]))

bcancer #200611 08/06/08 02:02 PM
Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
Use the pattern ^.{4,}$ , put it in a variable (because of the ",", if you put it directly in the $regex, mirc will consider it as a third parameter).I use . to match anything but you can be more precise if you want

Last edited by Wims; 08/06/08 02:02 PM.

#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #200612 08/06/08 02:15 PM
Joined: Oct 2007
Posts: 102
B
bcancer Offline OP
Vogon poet
OP Offline
Vogon poet
B
Joined: Oct 2007
Posts: 102
exemple please?

bcancer #200620 08/06/08 03:34 PM
Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
Code:
//Var %p = ^.{4,}$ | echo -a $regex(GaisGa,%p)
change GaisGa to Gais and to Gai to see the difference


#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard