PHP validation class
Moderator: General Moderators
PHP validation class
I need some validation class wich isn't big. Search from google but didn't find nofthing useful.
TY
TY
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
You could write a few small regexps.
Username (length 6-18):
Email:
I'm not too sure about my email regex and the whole RCC compliance thing though. 
Username (length 6-18):
Code: Select all
^[A-Za-z0-9_]{6,18}$Code: Select all
^[^@\s]+@[^\.]+\.(?:[\w]{2,4}(?!\.)|[\w]{2}\.[\w]{2})$- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
It's definitely not.superdezign wrote:Email:I'm not too sure about my email regex and the whole RCC compliance thing though.Code: Select all
^[^@\s]+@[^\.]+\.(?:[\w]{2,4}(?!\.)|[\w]{2}\.[\w]{2})$
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
No need... viewtopic.php?t=66712&highlight=validateemailformatsuperdezign wrote:Hehe, figures. I should really read up on that one day.
Maybe today.
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm