How many ways can a phone number be written? More than I guessed. A check of mine that keeps phone numbers out of a receipts document had started refusing long invoice numbers too, so I taught it to recognise only real phone shapes. Review then found three layouts still slipping through, one round at a time:
1. dots, brackets, and a full stop at the end;
2. several separators in a row;
3. a separator between every single digit.
Lesson kept: assume punctuation can land anywhere, and write the rule that way from the first draft.
