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

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details Swiss Phone Number
Expression
^(\+?)(\d{2,4})(\s?)(\-?)((\(0\))?)(\s?)(\d{2})(\s?)(\-?)(\d{3})(\s?)(\-?)(\d{2})(\s?)(\-?)(\d{2})
Description
This regex will match various ways of entering a Swiss phone number along with the country code.
Matches
+41 44 123 12 34 | +41 (0) 44 123 12 34 | +41-44-123-1234 | 0041 44 123 12 34
Non-Matches
+41 0 44 123 1234 | +41.44.123.1234
Author Rating: Not yet rated. Eric Wilson
   Displaying page 1 of 1 pages; Items 1 to 1

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