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 5 of 6 pages; Items 81 to 100
Title Test Details Pattern Title
Expression
(^(?!0{5})(\d{5})(?!-?0{4})(-?\d{4})?$)
Description
Javascript matches US zipcodes not allowing all zeros in first 5 or +4
Matches
12345 | 12345-6789 | 123456789
Non-Matches
12345-0000 | 00000-0000 | 00000
Author Rating: Not yet rated. Justin Elsberry
Title Test Details Pattern Title
Expression
^\d{5}((\-|\s)?\d{4})?$
Description
Single field zip code validator useful for web forms, where user may enter 5 digit or 9 digit zip code, and may use hyphen, space, or no space between the first 5 digits and last 4 digits.
Matches
92078 | 92078-4705 | 92078 4705
Non-Matches
920781 | 920a87 | 920
Author Rating: Not yet rated. MARK J KRISBURG
Title Test Details Pattern Title
Expression
^[\\(]{0,1}([0-9]){3}[\\)]{0,1}[ ]?([^0-1]){1}([0-9]){2}[ ]?[-]?[ ]?([0-9]){4}[ ]*((x){0,1}([0-9]){1,5}){0,1}$
Description
US Telephone Number where this is regular expression excludes the first number, after the area code,from being 0 or 1; it also allows an extension to be added where it does not have to be prefixed by 'x'.
Matches
(910)456-7890 | (910)456-8970 x12 | (910)456-8970 1211
Non-Matches
(910) 156-7890 | (910) 056-7890 | (910) 556-7890 x
Author Rating: Not yet rated. Bill Anderson
Title Test Details Pattern Title
Expression
^((([A-PR-UWYZ])([0-9][0-9A-HJKS-UW]?))|(([A-PR-UWYZ][A-HK-Y])([0-9][0-9ABEHMNPRV-Y]?))\s{0,2}(([0-9])([ABD-HJLNP-UW-Z])([ABD-HJLNP-UW-Z])))|(((GI)(R))\s{0,2}((0)(A)(A)))$
Description
Validates UK postcodes and aligns in parenthesized subpatterns according to standard UK postcode elements. Validation is according to guidelines outlined at http://www.govtalk.gov.uk/gdsc/html/noframes/PostCode-2-1-Release.htm Postcode elements are separated according to description at http://www.graticule.com/data/uk/pcdata.html Expression is not thoroughly tested, but seems to be doing ok so far! Comments and improvements welcome.
Matches
GIR 0AA | SW1Y 1AA | AB1 4BL
Non-Matches
XVJ P09 | GB7Z 1HQ | Q1 1AA
Author Rating: Not yet rated. Christopher Townson
Title Test Details Pattern Title
Expression
^[1-9]{1}[0-9]{3}\s?[A-Z]{2}$
Description
Postcode for the Netherlands
Matches
1234AB | 1234 AB
Non-Matches
123BBB | 023AB
Author Rating: Not yet rated. de kleine Gerardus
Title Test Details Pattern Title
Expression
^((\d[-. ]?)?((\(\d{3}\))|\d{3}))?[-. ]?\d{3}[-. ]?\d{4}$
Description
This is a pretty flexable phone number validator for US numbers. Allows optional country code and area code. Allows separation of numbers with " ", "-", "." or nothing to seperate. Area codes can be in parenthesis or not. Validates that you'll get 7, 10, or 11 digits in the way the most number of people option when writing them.
Matches
1(555)444-3333 | 202.555.3333 | 555-4444
Non-Matches
555-222-33334 | 1(303)5a4-5555 | 1 202) 111-3333
Author Rating: Not yet rated. Josh Aversa
Title Test Details Pattern Title
Expression
^([0-9]{2})?((\([0-9]{2})\)|[0-9]{2})?([0-9]{3}|[0-9]{4})(\-)?[0-9]{4}$
Description
A simple expression to brazilian phone number code modified expression of Rafael, beyond international code, simple DDI without "+" 99 plus simple DDD (99) plus simple and whitout parentheses em trace, local phone number 3 or 4 digits plus "-" plus 4 digits.
Matches
552123236699 | 212323-6699 | 2323-6699
Non-Matches
[3434-3432] | [4(23)232-3232] | [55(2)232-232]
Author Rating: Not yet rated. wallace dos santos damiao
Title Test Details Pattern Title
Expression
(^0.*[1-9]*)|(^860+)|(^8613)|(\D)|([0-9])
Description
forbidden tele numbers when it starts with 0, 860+,8613,character or has any SBC case. you can also use it to any international phone dialed by E1 ,etc . this regex has been tested by java, perl,.net PS: the last regex [0-9]is in SBC case
Matches
0234568 | 8601063971622 | 1-221555
Non-Matches
861063971622
Author Rating: Not yet rated. qi gao
Title Test Details Pattern Title
Expression
^([0-9]{5})([\-]{1}[0-9]{4})?$
Description
Validates against a U.S. postal code in either a 5 digit format or a 5 dash 4 format.
Matches
18017 | 18017-1401
Non-Matches
1801A | 18017- | 18017-152A
Author Rating: Not yet rated. Jeff Johns
Title Test Details Pattern Title
Expression
^[A-Za-z]{1,2}[0-9A-Za-z]{1,2}[ ]?[0-9]{0,1}[A-Za-z]{2}$
Description
This regular expression can be used to validate UK postcodes. Especially useful if want to provide a client side validation on a web site.
Matches
SW112LE | SW11 2LE | CR05LE
Non-Matches
12CR0LE | 12CR 0LE | SWLE05
Author Rating: Not yet rated. Santosh Potadar
Title Test Details Pattern Title
Expression
^(1?(-?\d{3})-?)?(\d{3})(-?\d{4})$
Description
US Telephone Reg expression that allows 7, 10 or 11 digits with or without hyphens.
Matches
15615552323 | 1-561-555-1212 | 5613333
Non-Matches
1-555-5555 | 15553333 | 0-561-555-1212
Author Rating: Not yet rated. jay gann
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
^[abceghjklmnprstvxyABCEGHJKLMNPRSTVXY][0-9][abceghjklmnprstvwxyzABCEGHJKLMNPRSTVWXYZ] {0,1}[0-9][abceghjklmnprstvwxyzABCEGHJKLMNPRSTVWXYZ][0-9]$
Description
Canadian Postal Code / Codes / Canada / Zip Google for DFIOQU and you'll see where I got the info for this. Can anyone simplify this?
Matches
G3M 5T9 | C3M5T9
Non-Matches
Z3M 5T9 | W3M 5T9 | 5T9 C3M
Author Rating: Not yet rated. W. D.
Title Test Details Pattern Title
Expression
^([\+][0-9]{1,3}[\.][0-9]{1,12})([x]?[0-9]{1,4}?)$
Description
Validates on the following standards: +CCC.ZZZZZZZZZZxYYYY, where 'C' is the numeric country phone code (up to three digits), 'Z' is the phone number (up to 12 digits) and 'Y' is the extension (up to 4 digits); max length overall is 20 characters, including the '+', '.', and 'x' (if extension is present). Useful for people communicating with the OpenSRS API
Matches
+800.4453377x4444 | +80.4453377 | +8.123456789123x1111
Non-Matches
181823884499 | +800.4453377x | 2486994x11
Author Rating: Not yet rated. Hayk A
Title Test Details Pattern Title
Expression
([0]{1}[6]{1}[-\s]*[1-9]{1}[\s]*([0-9]{1}[\s]*){7})|([0]{1}[1-9]{1}[0-9]{1}[0-9]{1}[-\s]*[1-9]{1}[\s]*([0-9]{1}[\s]*){5})|([0]{1}[1-9]{1}[0-9]{1}[-\s]*[1-9]{1}[\s]*([0-9]{1}[\s]*){6})
Description
Meets dutch phone number requirements.. One posted here before didn't allow the 0 after the first digit of the call ID (so the second number or later after the prefix), which should be allowed. I modified that one to meet full requirements now.. Enjoy!!
Matches
06 12345678 | 010-1234560 | 0111-101234
Non-Matches
05-43021212 | 123-4567890 | 1234567890
Author Rating: Not yet rated. Dennis de Jong
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
^(?!\d[1]{2}|[5]{3})([2-9]\d{2})([. -]*)\d{4}$
Description
Validates *usable* US telephone numbers (possibly Canadian and Caribbean Islands as well?) Numbers cannot beginning with zero, one, (any number)11, or 555. It will allow either a hyphen, space or period as a separator. Technically (and contrary to popular belief) most 555- numbers ARE valid numbers [see http://www.nanpa.com/nas/public/form555MasterReport.do?method=display555MasterReport ] but they are unlikely to be used by normal folks. Therefore, excluding them with this regex is useful to prevent bogus/fraudulent telephone numbers in forms. FYI, the fictitious 555- numbers used in the movies and TV are only in the range of 555-0100 through 555-0199. Not very many, huh?
Matches
222-2222 | 295-5000
Non-Matches
555-1234 | 411-5555 | 099-9999
Author Rating: Not yet rated. JP Honeywell
Title Test Details Pattern Title
Expression
(^\([0]\d{2}\))(\d{6,7}$)
Description
Validator for New Zealand Mobile phone numbers. Will look for the first number being a 0 and must be a number or either 6 or 7 digits long after to initial (021) suffix
Matches
(021)1234567 | (021)123456 | (000)000000
Non-Matches
(123)1234567 | 025123456 | 0252345678
Author Rating: Not yet rated. Graeme Allwood
Title Test Details Pattern Title
Expression
(077|078|079)\s?\d{2}\s?\d{6}
Description
Validates UK mobile phone numbers. Valid formats are `077', `078' or `079' followed by another 8 digits, with an optional space after the dialling code and/or between the 4th and 5th characters of the remainder of the number. These formats are taken from the official guidelines from Ofcom, the organisation responsible for UK telecoms issues. Brackets are not valid and STD code must be entered.
Matches
07713 345678 | 078 12345678 | 079 12345678
Non-Matches
02344 123456 | 0121 292929 | 012345 6789
Author Rating: Not yet rated. John Chivers
Title Test Details Pattern Title
Expression
^\({0,1}0(2|3|7|8)\){0,1}(\ |-){0,1}[0-9]{4}(\ |-){0,1}[0-9]{4}$
Description
Expression to parse Australian landline telephone numbers. Will only accept valid STD codes. Allows for brackets around the STD code and either spaces or dashes between number groups.
Matches
(02) 9323 1234 | 0293231234 | 02-9323-1234
Non-Matches
01 9323 1234 | 02 932 123 | 02/9323/1234
Author Rating: Not yet rated. Ben Vaughan
Change page:   |    Displaying page 5 of 6 pages; Items 81 to 100

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