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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Malaysia Mobile Number
Expression
^([0])([1])([1,2,3,4,6,7,8,9])([0-9][0-9][0-9][0-9][0-9][0-9][0-9])
Description
accepts malaysian mobile number example (011,012,013...) plus 7 additional numbers
Matches
0171234567 | 0141234567 | 0167791990
Non-Matches
0151234567 | 0211234567 | 1011234567
Author Rating: The rating for this expression. aresh saharkhiz
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: Inefficient pattern.
Name: g1smd
Date: 8/5/2012 8:13:23 PM
Comment:
The ^([0])([1])([1,2,3,4,6,7,8,9])([0-9][0-9][0-9][0-9][0-9][0-9][0-9]) pattern is very inefficient and simplifies to ^01[1-46-9][0-9]{7}$ here. The ([0])([1]) simplifies to 01 here. The ([1,2,3,4,6,7,8,9]) simplifies to [1-46-9] here. In particular the commas are incorect. The ([0-9][0-9][0-9][0-9][0-9][0-9][0-9]) simplifies to [0-9]{7} here.


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