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?