I need regular Expression which should start with letters only and later it can contain numbers or letters.But starting should contain letters only. I have used
The regex you are using is pretty good. The problem with this: ^[a-zA-Z]*[a-zA-Z0-9]+$ is that you are using the * operator, which denotes 0 or more repetitions. If you want it to start with a letter, just use this: ^[a-zA-Z][a-zA-Z0-9]*$. This will match a letter an any letters or numbers which might follow.