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:
KeeperOfLogic
|
Source |
|
Your Rating |
|
Title: Thank You
Name: Rasin Vadim
Date: 5/15/2008 5:50:01 AM
Comment:
Great Regular Expression.
Keep up the good work.
thanks!