phone number pattern validation angular code example
Example 1: email validation pattern angular
pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,3}$"
Example 2: USA phone number validator angular
^(\([0-9]{3}\)|[0-9]{3}-)[0-9]{3}-[0-9]{4}$
pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,3}$"
^(\([0-9]{3}\)|[0-9]{3}-)[0-9]{3}-[0-9]{4}$