Support first-number and number-last syntax.