RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Browse Expressions by Category

104 regular expressions found in this category!

Expressions in category: Address/Phone

Change page:   |    Displaying page 6 of 6 pages; Items 101 to 104
Title Test Details Pattern Title
Expression
((\(\d{3}\)?)|(\d{3}))([\s-./]?)(\d{3})([\s-./]?)(\d{4})
Description
US Phone number that accept a dot, a space, a dash, a forward slash, between the numbers. Will Accept a 1 or 0 in front. Area Code not necessary
Matches
1.2123644567 | 0-234.567/8912 | 1-(212)-123 4567
Non-Matches
0-212364345 | 1212-364,4321 | 0212\345/6789
Author Rating: Not yet rated. Mart Maasikas
Title Test Details Pattern Title
Expression
^\(?(?<AreaCode>[2-9]\d{2})(\)?)(-|.|\s)?(?<Prefix>[1-9]\d{2})(-|.|\s)?(?<Suffix>\d{4})$
Description
US telephone number with area code. Validates and also captures AreaCode, Prefix and Suffix for reformatting.
Matches
(213) 343-1234 | 213-343-1234 | 213 343 1234
Non-Matches
343-1234
Author Rating: Not yet rated. MARK J KRISBURG
Title Test Details Pattern Title
Expression
^(9,)*([1-9]\d{2}-?)*[1-9]\d{2}-?\d{4}$
Description
Validates US or Canadian phone numbers with the use of &quot;-&quot; or numbers stuck together. No parantheses allowed as well as spaces. Area code is optional. The &quot;9,&quot; is optional as well, which on some phone systems is needed to dial out.
Matches
9,5143393044 | 9,514-339-3044 | 339-3044
Non-Matches
9,339 3044 | 514 440 2009 | (514) 440-2009
Author Rating: Not yet rated. Max Cacchiotti
Title Test Details Pattern Title
Expression
(?<zip5>^\d{5})([\- ]?(?<plus4>\d{4})?$)
Description
Zip Code (Zip or Zip-Plus4 format). Accepts a hyphen, a space, or nothing between Zip and Plus4 segments. Named segments &lt;zip&gt; and &lt;plus4&gt; may be used to reformat users input to desired format using Regex replace function (re.replace).
Matches
92078 | 92078-4705 | 92078-4705
Non-Matches
9207 | 92078470 | 92078*4705
Author Rating: Not yet rated. MARK J KRISBURG
Change page:   |    Displaying page 6 of 6 pages; Items 101 to 104

Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials