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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^\(?082|083|084|072\)?[\s-]?[\d]{3}[\s-]?[\d]{4}$
Description
I modified the existing phone number regex for another user looking to only allow 082, 083, 084, or 072 exchanges. Written by Jason Gaylord
Matches
082-131-5555 | 083-145-654 | 072 555 1212
Non-Matches
131-253-4564 | 5551212 | 800 555 1212
Author Rating: Not yet rated. Jason N. Gaylord
Source http://www.regexlib.com/REDetails.aspx?regexp_id=283
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: RE: What exchange is that?
Name: Jason
Date: 6/29/2004 6:58:40 PM
Comment:
If you read the description, you will see that I modified an original source to include only those exchanges. That's why it's shown like that. Someone asked for help in modifying the existing regex.


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