Can I have some help with regex. I'm using mod_rewrite for a social networking site, and I want to make sure every user name can be accounted for. Here is my current code.
That will cover any username in the format "AbCaBc123", but I also want it to include periods, underscores, letters, and numbers anywhere in the user name. Can someone show some code that will do that?
Also, how can I restrict my registration form/MySQL database to only allow #'s, letters, and "." or "_"?
Thanks for the help!