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 Cisco IP Phone number - 10 digit number
Expression
^\d{10}$
Description
I needed an expression to allow only a 10 digit number to be entered. No () or dashes or spaces. Cisco IP phones only like the 10 digit number. So here's what I came up with. Very short and simple!
Matches
0123456789, any 10 digit number.
Non-Matches
01245, 01234567899, Less than or greater than 10 digits will fail.
Author Rating: Not yet rated. John Burrey
   Displaying page 1 of 1 pages; Items 1 to 1

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