Page 1 of 1
Question about regex
Posted: Tue Jul 07, 2009 6:26 pm
by jasejunk
Hey all. I'm looking to make a script that can check if a string is either 3-18 characters with no symbols or if it's 6-35 characters in email form.
If any know how to do this, please let me know.
Re: Question about regex
Posted: Tue Jul 07, 2009 6:32 pm
by Christopher
You should be able to find patterns to match alphanum and email. If one of those checks pass, then use strlen() to check the length.
Re: Question about regex
Posted: Tue Jul 07, 2009 6:55 pm
by jasejunk
I want it to be able to check if one of those forms fits either of the condition sets.