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 2
Title Test Details Phone number (Spain)
Expression
(([+]?34) ?)?(6(([0-9]{8})|([0-9]{2} [0-9]{6})|([0-9]{2} [0-9]{3} [0-9]{3}))|9(([0-9]{8})|([0-9]{2} [0-9]{6})|([1-9] [0-9]{7})|([0-9]{2} [0-9]{3} [0-9]{3})|([0-9]{2} [0-9]{2} [0-9]{2} [0-9]{2})))
Description
This regular expression allows to verify mobile phone numbers (600) and telephone numbers (900). Not provide premium charging phones (line 800). The number may be separated by spaces in groups of three digits, or one group of three number plus two groups of three numbers for fixed phones.
Matches
952 566 009 | +34 615 977 911 | 967 90 23 44
Non-Matches
802 59 23 09 | 677 90 23 44 | 67 7 809 235
Author Rating: The rating for this expression. Jonas Talavera
Title Test Details DNI
Expression
(0?[1-9]|[1-9][0-9])[0-9]{6}(-| )?[trwagmyfpdxbnjzsqvhlcke]
Description
Allows to check a identity card (DNI) with a valid verification letter. Not all letters of the alphabet are valid
Matches
07456789-J | 25895325x | 07456789J
Non-Matches
34123450o | 00567123G | 00654987 Z
Author Rating: Not yet rated. Jonas Talavera
   Displaying page 1 of 1 pages; Items 1 to 2

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