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 4
Title Test Details Email Validateion RegEx
Expression
^([A-Za-z]+)([0-9]+)?([A-Za-z0-9\.\_]+)?\@(([A-Za-z]+)([0-9]+)?([A-Za-z0-9\.\_]+)?)((\.)([a-zA-Z]+))$
Description
Need Multiline option to validate email string for better result
Matches
Non-Matches
Author Rating: Not yet rated. Ankur Ranpariya
Title Test Details Web URL Validation RegEx
Expression
^(http(s?)\:\/\/)?(www.)?(([A-Za-z]+)([0-9]+)?([A-Za-z0-9\.\_\-]+)?)(\.)(([a-zA-Z]{2,})([0-9a-zA-Z]+)?)(\:\d{0,5})?(\/|(\/[A-Za-z]+([a-zA-Z0-9]+)?)+)?(\?[a-zA-Z0-9\\\&\%\_\.\/\-\=\~\*]+)?$
Description
Web Url validation using regex. need mult-line option
Matches
https://www.test.com | https://www.test.com/ | https://test.com | https://test.com/ | http://test.com | www.test.com | www.test.com/ | test.com | test.com | test069.com | test.test.com | test01.test01.com | test.test.co | test.com:1 | test.cm:12345 | www.xa.com/abc/a | www.xa.com/abc | test.com/con1/method1 | w.google.com | google.com?te-st=xyz | oogle.com?test=xyz | google.com?test= | google.com?test | google.com?test=xyz&text | google.com?test=xyz&text=t&*5
Non-Matches
*.google.com | goole.com/* | .google.com | google.com? | google.com/? | google.co-m | @.google.com | ftp://test.com | test test.com | www.xa.com/ab c/a | test.com:123456 | //test.com | test.test.c | 01test.test.com | test.c | test.test. | http://www.test.c | 01test.com | test.01 |
Author Rating: Not yet rated. Ankur Ranpariya
Title Test Details USZ Zip Code Validation
Expression
^(\d{5})([\-\ ]\d{4})?$
Description
Support Zip+4 with dash "-" or space " " need multiline option
Matches
12345-4565 | 12345 | 12345 1234
Non-Matches
123456 | 1234 | 1234-1234 | 12345-12345 | 12345-123 | 12345 123 | 12345 12345 | 1234 1234 | 1234 12345
Author Rating: Not yet rated. Ankur Ranpariya
Title Test Details Phone Number Validation (USA Style)
Expression
^([+0]\d{1,3}[\ \-]?)?(\()?([0-9]{3})(?(2)\)|(\))?)([\-\.\ ])?([0-9]{3})(?(5)\5|\5?)([0-9]{4})$
Description
Validate Phone number like USA/North American Phone style country code allow max 3 digit (required 0 or + as prefix) suffix space or dash is optional
Matches
1234567890 | +11234567890 | +1 1234567890 | 123 456 7890 | 123-456-7890 | 123.456.7890 | (123)4567890 | (123) 456 7890 | (123)-456-7890 | (123).456.7890 | +1123 456 7890 | +1123-456-7890 | +1123.456.7890 | +1 123 456 7890 | +1 123-456-7890 | +1 123.456.7890 | +1(123)4567890 | +1(123) 456 7890 | +1(123)-456-7890 | +1(123).456.7890 | +1 (123)4567890 | +1 (123) 456 7890 | +1 (123)-456-7890 | +1 (123).456.7890 | 01123 456 7890 | 01123-456-7890 | 01123.456.7890 | 01 123 456 7890 | 01 123-456-7890 | 01 123.456.7890 | 01(123)4567890 | 01(123) 456 7890 | 01(123)-456-7890 | 01(123).456.7890 | 01 (123)4
Non-Matches
+ (123).456.7890 | +1234 123 456 7890 | 0 (123).456.7890 | 01234 123 456 7890 | 123 123 456 7890 | 123 4567890 | 123456 7890 | (123 4567890 | (1234567890 | 123-456 7890 | 123.456 7890 | 123 4567890 | +1 123 4567890 | +1 123456 7890 | +1 (123 4567890 | +1 (1234567890 | +1 123-456 7890 | +1 123.456 7890 | +1 123 4567890 | +1123 4567890 | +1123456 7890 | +1(123 4567890 | +1(1234567890 | +1123-456 7890 | +1123.456 7890 | +1123 4567890
Author Rating: The rating for this expression. Ankur Ranpariya
   Displaying page 1 of 1 pages; Items 1 to 4

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