3raser Posted February 16, 2012 Share Posted February 16, 2012 I've never bothered to really look into the preg_match function, but I thought it could be a very useful function. I've read the PHP manual, but what's with the random characters such as /^def/ (an example in the PHP manual). I want to create a function that only allows letters, numbers, and underscores in the username. How would I go about doing so? Link to comment https://forums.phpfreaks.com/topic/257145-preg_match/ Share on other sites More sharing options...
requinix Posted February 17, 2012 Share Posted February 17, 2012 Now that you're in the Regex forum, take a look at some of the stickies at the top of the thread listing. They should be able answer your questions. Link to comment https://forums.phpfreaks.com/topic/257145-preg_match/#findComment-1318181 Share on other sites More sharing options...
AyKay47 Posted February 17, 2012 Share Posted February 17, 2012 I agree with requinix here, since this is a rather easy regular expression, I would suggest you study a little further on the subject. If you simply cannot figure this out, I will gladly help. Link to comment https://forums.phpfreaks.com/topic/257145-preg_match/#findComment-1318321 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.