Mutley Posted September 1, 2008 Share Posted September 1, 2008 How do I allows spaces in a preg_match, currently it does a-z A-Z 0-9 _ - preg_match('/^[a-zA-Z0-9_-]+$/', $theword) Thanks, Nick. Quote Link to comment https://forums.phpfreaks.com/topic/122273-preg_match-spaces-help/ Share on other sites More sharing options...
corbin Posted September 1, 2008 Share Posted September 1, 2008 preg_match('/^[a-zA-Z0-9_- ]+$/', $theword) Quote Link to comment https://forums.phpfreaks.com/topic/122273-preg_match-spaces-help/#findComment-631392 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.