mIRC Home    About    Download    Register    News    Help

Print Thread
#199576 16/05/08 07:06 PM
Joined: Oct 2005
Posts: 34
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Oct 2005
Posts: 34
I need regex help on this type of nicks
Join: * Nick: kljuire
Join: * Nick: kpepmbliebms
Join: * Nick: skrbtkthwe
i just need regex like if nick 3-32 islower that regex will catch the nick. lower and from 3-32length thats the condition i tried with /(?-i)^[a-zA-Z]{3,}?/ but didnt work what did i miss can anyone help on that ?

Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
/^[a-z]{3,32}$/ should works, do not forget to put the pattern in a variable and use it like $regex($nick,%var) because of the {3,32}


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Oct 2005
Posts: 34
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Oct 2005
Posts: 34
what would be appropriate for guest123456 case sensitive
/(?-i)^[guest]\d+$/ ?? or it could be something else

Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
/^guest\d+$/

Joined: Dec 2007
Posts: 48
K
Kol Offline
Ameglian cow
Offline
Ameglian cow
K
Joined: Dec 2007
Posts: 48
Code:
if ($nick islower && $len($nick) isnum 3-32)


Link Copied to Clipboard