I have some symbols in the form of alpha-numeric chars, followed by a single digit. The digit is a year and I need to expand to a two digit year, with 9 becoming 09 and any other year becoming prefixed with 1.
For example:
GCZ0 -> GCZ10
GCZ1 -> GCZ11
...
GCZ8 -> GCZ18
GCZ9 -> GCZ09
I am playing with ([A-Z]+)([9+])([0-9]+) but I'm not sure how to get the replacement to conditionally include the right 0 or 1 prefix.
Could a regex master point me in the right direction please? For unfortunate reasons, I need to do this in a single Java regex match/replace.
Thanks, Jon