in reply to Re: Character Counts
in thread Character Counts

US numbers are very regular if you ignore extension numbers. The simple expression mentioned below handles all normal US cases that I just thought of while writing this.

/ ^ # Start (?: \D? \d{3} \D{,2} )? # Optional area code \d{3} \D? # Prefix with optional punctuation \d{4} # Last four digits /x