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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^\(\d{3}\) ?\d{3}( |-)?\d{4}|^\d{3}( |-)?\d{3}( |-)?\d{4}
Description
Expresion Regular para Teléfonos con clave lada en México separada o no con guiones o espacios. Sirve para teléfonos estacionarios y/o celulares, con o sin paréntesis, 10 números a fuerzas, funciona en .net
Matches
(658)154-1122 | 6581541122 | 658-154-1122
Non-Matches
(658 154 1122 | 759-1245 | 875 (489 1568)
Author Rating: The rating for this expression. Alex Cons
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: Hi
Name: Suman
Date: 8/9/2016 11:04:07 AM
Comment:
Hi, This is working for me for below regx:- 5125636563 ,512-563-6563 ,(512) 563-6563 ,512 563 6563 but it is not working fine for - 021 5252 2522 ,44 207 183 8750 Please help me!!


Title: Hi
Name: Suman
Date: 8/9/2016 11:01:35 AM
Comment:
Hi, This is working for me for below regx:- o 5125636563 o 512-563-6563 o (512) 563-6563 o 512 563 6563 but it is not working fine for - o 021 5252 2522 o 44 207 183 8750 Please help me!!


Title: Expression Fix
Name: Robert Medina
Date: 4/17/2013 9:27:16 PM
Comment:
Just add the dollar sign ($) (without the parentheses) and the expression will not accept any letters in the end


Title: Error
Name: acepta letras
Date: 7/3/2009 8:59:32 PM
Comment:
le encontre un pequeño error al entrar el siguiente formato (333)111-3445aaaaa esto es que acepta letras despues del formato, lo podran corregir por favor??


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