I am trying to validate a USERNAME in PHP using Regular Expression. But I am failed. My pattern is: /[^a-z0-9_]/
Rules:
- username must start number or small letters
- username support number, small letters and _
- the end of username character is not be _