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

Please support RegExLib Sponsors

Sponsors

Advanced Search

Keywords

Category

Minimum Rating

Results per Page

Search Results: 2 regular expressions found.

   Displaying page 1 of 1 pages; Items 1 to 2
Title Test Details Pattern Title
Expression
^([0-9]( |-)?)?(\(?[0-9]{3}\)?|[0-9]{3})( |-)?([0-9]{3}( |-)?[0-9]{4}|[a-zA-Z0-9]{7})$
Description
Matches US phone number format. 1 in the beginning is optional, area code is required, spaces or dashes can be used as optional divider between number groups. Also alphanumeric format is allowed after area code.
Matches
1-(123)-123-1234 | 123 123 1234 | 1-800-ALPHNUM
Non-Matches
1.123.123.1234 | (123)-1234-123 | 123-1234
Author Rating: The rating for this expression. Igor Kravtsov
Title Test Details UK Mobile Phone Number
Expression
^(\+44\s?7\d{3}|\(?07\d{3}\)?)\s?\d{3}\s?\d{3}$
Description
UK mobile phone number, with optional +44 national code. Allows optional brackets and spaces at appropriate positions.
Matches
07222 555555 | (07222) 555555 | +44 7222 555 555
Non-Matches
7222 555555 | +44 07222 555555 | (+447222) 555555
Author Rating: The rating for this expression. Amos Hurd
   Displaying page 1 of 1 pages; Items 1 to 2

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