View Single Post
Old 03-19-2008, 09:39 PM   #36 (permalink)
xenon
The Frequenter
Newcomer 
 
xenon's Avatar
 
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
xenon is on a distinguished road
Default

Code:
/^[a-z][a-zA-Z0-9_]{3,27}$/
{1} may be omitted in this case since you only need one letter to validate the beginning of the string, so the repetition doesn't make any sense.
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
xenon is offline  
Reply With Quote