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
^(((((\+)?(\s)?(\d{2,4}))(\s)?((\(0\))?)(\s)?|0)(\s|\-)?)(\s|\d{2})(\s|\-)?)?(\d{3})(\s|\-)?(\d{2})(\s|\-)?(\d{2})
Description
This regex matchs nearly all forms off swiss phone numbers, not only the official form.
Matches
0521112233, 052 111 22 33, +41 (0)52 111 22 33, +41 52 111 22 33, 0041 52 111 22 33
Non-Matches
0041 052 111 22 33, +41 11 22 33 44
Author Rating: The rating for this expression. Manuela Grob
   Displaying page 1 of 1 pages; Items 1 to 1

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