? matches the previous element 0 or 1 times. 12?3 will match 13 or 123, but not 1223.