[a-zA-Z]_*[a-zA-Z0-9]*
which I'm aiming for to match :
astring_something;
helloall90
but not :
Astring
_helloall
My regex is protecting me with the identifiers should start with small case letters. But it doesn't work for _
cases. Passing the string :
astring_something;
Is not been properly identified. Its been identified as astring
and something
leaving out _
.
Where I'm making the mistake?