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. 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) Link to comment https://forums.phpfreaks.com/topic/122273-preg_match-spaces-help/#findComment-631392 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.