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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find 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
Source
Your Rating
Bad Good

Enter New Comment

Title
 
Name
 
Comment
 
Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: [\. ] means \ or .
Name: zhao
Date: 6/3/2004 3:08:33 AM
Comment:
^(\+[0-9]{1,3}\.[0-9]{1,12})([x]?[0-9]{1,4}?)$


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