I have a requirement where I need to check if a first character of a string is an alphabet (a-z or A-Z), rest all characters should be numbers (0-9) and string length should be exactly equal to 7.
I am using regex tool to achieve this and used this expression: ([A-Za-z]+)([0-9]+)
With this, I am able to solve only the first two requirements but not the third one (length = 7). Can't wrap my head around this. Any suggestions are welcome. Thanks in advance.