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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Hungarian phone number
Expression
^(\+?36)?[ -]?(\d{1,2}|(\(\d{1,2}\)))/?([ -]?\d){6,7}$
Description
Regex for validating format of Hungarian phone numbers.
Matches
+3611234567 | +3676123456 | +36301234567 | +36 1 1234567 | +36 76 123456 +36 30 1234567 | +36(1)1234567 | +36(76)123456 | +36(30)1234567 | 1/123-4567 | 76/123-456 | 30/123-45-67
Non-Matches
+0011234567
Author Rating: The rating for this expression. Attila Varga
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: Pontosabb verzió
Name: Kiss Robi
Date: 11/7/2016 2:21:45 PM
Comment:
Kicsit hosszabb, de jobban kezeli a valós kombinációkat ^(?:\+?(?:36|\(36\)))[ -\/]?(?:(?:(?:(?!1|20|21|30|31|70|90)[2-9][0-9])[ -\/]?\d{3}[ -\/]?\d{3})|(?:(?:1|20|21|30|31|70|90)[ -\/]?\d{3}[ -\/]?\d{2}[ -\/]?\d{2}))$


Title: Pontosabb verzió
Name: Kiss Robi
Date: 11/7/2016 2:21:40 PM
Comment:
Kicsit hosszabb, de jobban kezeli a valós kombinációkat ^(?:\+?(?:36|\(36\)))[ -\/]?(?:(?:(?:(?!1|20|21|30|31|70|90)[2-9][0-9])[ -\/]?\d{3}[ -\/]?\d{3})|(?:(?:1|20|21|30|31|70|90)[ -\/]?\d{3}[ -\/]?\d{2}[ -\/]?\d{2}))$


Title: Pontosabb verzió
Name: Kiss Robi
Date: 11/7/2016 2:21:13 PM
Comment:
Kicsit hosszabb, de jobban kezeli a valós kombinációkat ^(?:\+?(?:36|\(36\)))[ -\/]?(?:(?:(?:(?!1|20|21|30|31|70|90)[2-9][0-9])[ -\/]?\d{3}[ -\/]?\d{3})|(?:(?:1|20|21|30|31|70|90)[ -\/]?\d{3}[ -\/]?\d{2}[ -\/]?\d{2}))$


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