regex for us phone number format code example Example: USA phone number validator angular ^(\([0-9]{3}\)|[0-9]{3}-)[0-9]{3}-[0-9]{4}$