I am trying to create a javascript regex for below conditions
- Allow Alphanumeric only
- But also allow underscore(_)
- Don't allow to start with a number
- Don't allow to start with an underscore
I have created a regex ^(?![0-9]|[_].*$).* which will work for last two conditions above. Please suggest how can I add an and condition to make it work for all above scenarios.