AdRock Posted September 8, 2007 Share Posted September 8, 2007 I have a registration form (updating old one) and some registered users have a space in their username How do I add the space to this regex? else if(!ereg("^[A-Za-z0-9\-]{4,30}$",$username)) Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted September 8, 2007 Share Posted September 8, 2007 else if(!ereg("^[A-Za-z0-9 \-]{4,30}$",$username)) Just add a space? I guess you could add \w... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.