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 3
Title Test Details Indian Zip Code
Expression
/^[1-9][0-9][0-9][0-9][0-9][0-9]$/
Description
I know this is very simple but this is the indian zip code and will allow only 6 digits.
Matches
400023 | 200021 etc
Non-Matches
034562 | 00342
Author Rating: Not yet rated. trupti.gore
Title Test Details Indian Phone Number
Expression
/^[0-9]\d{2,4}-\d{6,8}$/
Description
This is indian phone number. where it will take a format of std code 3 to 4 digits, hypen and rest of the 6 to 8 digits,
Matches
0222-8345622 | 09786-567567
Non-Matches
11-567567 | 114490-56756744
Author Rating: Not yet rated. trupti.gore
Title Test Details Name and Number
Expression
^\s*[a-zA-Z0-9,\s]+\s*$
Description
Will take space, number, no special characters
Matches
Project Name1, Project 1
Non-Matches
Project@1, Project Name^111
Author Rating: The rating for this expression. trupti.gore
   Displaying page 1 of 1 pages; Items 1 to 3

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