Header Ads

US Phone Number With Optional Extension Regular Expression

Are you looking for validation expression for US phone number with optional extension.

Here it is:


It accepts the following


Minimum Extension length is 2 and Maximum is 4 and it is optional.

We can change the minimum and maximum lengths by simply replacing the values of MIN and MAX.


No comments:

Powered by Blogger.