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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Israel generic phone number
Expression
^\b\d{2,3}-*\d{7}\b$
Description
Matches almost all Israel phone numbers (without 1800). Generic means it doesn't have a list of allowed prefix (i.e 050,03) because it changes frequently. Instead it accepts any 2-3 digits prefix, with or without hyphen.
Matches
03-1234567 | 050-1234567 | 0771234567
Non-Matches
1-800-1234567 | 04-123456 | 9-1234567 | 1234567
Author Rating: The rating for this expression. KeeperOfLogic
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: Thank You
Name: Rasin Vadim
Date: 5/15/2008 5:50:01 AM
Comment:
Great Regular Expression. Keep up the good work. thanks!


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