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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Base Mobile Phone #01
Expression
(?<prefix>[\d]{3})[\s+\/\\\-]+(?<number>[\d\-\s]+)
Description
Split phone nuber for prefix and number
Matches
0905 444 555|0905 444555|0905/444-555
Non-Matches
0905444555
Author Rating: Not yet rated. Mário Moravčík (SK)
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: all test cases fail
Name: Erwin
Date: 1/30/2016 5:37:44 AM
Comment:
The regexp demands a first group of 3 digits All "Matches" testcases supply 4 digits, and thus all fail.


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