O'Reilly logo
  • Zezhong Zheng thinks this is interesting:

(?(1)(\d\d)|[a-z]{3,4})

From

Cover of Mastering Python Regular Expressions

Note

If group(1) (i.e. (\d\d)?) doesn't match, it should match "(\d\d)"; else it should match "[a-z]{3,4}".