regex to match letters, numbers, certain symbols
- by Hintswen
I need to validate a username in php, it can be:
Letters (upper and lower case)
Numbers
Any of these symbols :.,?!@
up to 15 characters OR 16 if the last character is one of the following #$^ (it can also be 15 or less with one of these 3 characters at the end only)
How do I do this?