I want to create regex that matches a digit, followed by the string A, B or AB.
Should match:
0A
0B
0AB
not:
0AA
0BB
0BA
I started as follows, but that would also match the values below that I don't want to match:
[0-9][AB]+
Of course this is due to the [AB]+ group. But how can I only match like A|B|AB?