Page 1 of 1

expression issue

Posted: Sat Oct 20, 2007 6:09 am
by itsmani1
here is my expression, its not allowing "!" If i pass "!" to it and try to check it returns false

Code: Select all

$regex="/^[a-zA-Z0-9_\!\.\-\;\:\'\"\&\@ ]{5,75}$/";

any help???

Posted: Sat Oct 20, 2007 7:41 am
by Oren
Well it works fine for me. Make sure to pass a string that is longer than 4 characters and shorter than 76 :wink: