mIRC Home    About    Download    Register    News    Help

Print Thread
Regex Help on Nick #199576 16/05/08 07:06 PM
Joined: Oct 2005
Posts: 34
S
SLiprockS Offline OP
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 ?

Re: Regex Help on Nick [Re: SLiprockS] #199577 16/05/08 07:28 PM
Joined: Jul 2006
Posts: 3,880
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,880
/^[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}

Re: Regex Help on Nick [Re: SLiprockS] #199581 16/05/08 07:52 PM
Joined: Oct 2005
Posts: 34
S
SLiprockS Offline OP
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

Re: Regex Help on Nick [Re: SLiprockS] #199583 16/05/08 08:27 PM
Joined: Nov 2006
Posts: 1,559
H
Horstl Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
/^guest\d+$/

Re: Regex Help on Nick [Re: SLiprockS] #199613 17/05/08 01:13 PM
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)