I need to match the first few characters of a string. The match is true if:
- The first character is a letter (case insensitive)
- The second character is either a digit or a letter
- If the second character is a digit, the match is returned true
- If the second character is a letter, the third character must be a digit
- The pattern will ignore all other subsequent characters in the string
Examples:
AB1ghRjh //true
c1 //true
G44 //true
Tt7688 //true
kGF98d //false
4FG3 //false
4 5a //false
RRFDE //false
Would appreciate if anyone could supply an example.
Thanks a lot!