mIRC Homepage
Posted By: coder HELLLO help with with regex plssssssss - 26/11/03 12:58 PM
here the simpe code (im still learning regex for my future and sons)

$regex(c,[d-b])
how to make that code returning 1 WITHOUT changing [d-b]
so i want it goes like if (1 !ISNUM 2-4) { }
so far as i know,[d-b] mean d too b :
d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,a,b so c is not include right
i hope someone help me


p/s : KINGTOMATO pls do not reply my post
AFAIK [d-b] is an invalid character range since the range-checking doesn't loop round to the beginning of the alphabet like that so you'll always get 0 with that expression. However, to negate a character set you would make the first character inside it a ^. So to do what you wanted you'd use the regular expression [^abd-z].
Posted By: coder Re: HELLLO help with with regex plssssssss - 27/11/03 05:32 AM
thank you sooooooooo much starbuck
why i didnt think about that b4
thx
© mIRC Discussion Forums