I have sample regex for check user nickname:
^[a-z][a-z0-9_](?:[a-z0-9]+)*$
This regex match correct nicknames:
- username
- username16
But can't match like this correct nicknames:
- username_16
In generaly how rewrite my regex for regx which can ignore sample wrong user names:
- 16username
- _username
- username_
User nickname string on start can contain only a-z
letters and in the middle (center) of string can contain a-z0-9_
and on the end can contain only a-z0-9