I suppose it’s a pretty basic issue but I just can’t figure it out:
Should match:
A12
A12.1
A12.123
Should not match:
A1
A123
A13
My guess was A12[^0-9] but this way “A12” doesn’t match. A12[^0-9]|A12 would be a workaround but I was looking for something more elegant.
fulfills your requirements exactly as stated: Match
A12unless it’s followed by a number.