I have this RegEx:
^[a-z0-9](?:[a-z0-9]+)*$
How can I modify this so that a lowercase letter can only appear in my string if there is a number and ONLY after that number?
These are expected matches:
AA
AB
1a
1b
1A
1B
A1A
A1a
AB1
AB2
AB1a
AB2b
These would fail:
Aa
Ab
a1
b1
Ab1
a1a