Jump to content

preg_match


3raser

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.