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 9
Title Test Details email regex
Expression
[\w]+\@[\w]+\.?[\w]+?\.?[\w]+?\.?[\w+]{2,4}
Description
any email form like [email protected], [email protected], [email protected], [email protected], [email protected]. You can replace .com with .net | .edu | .uk | .in or anything. I will work.
Matches
Non-Matches
Author Rating: The rating for this expression. Kumar Deepak Ranjan
Title Test Details US Phone (10 digit)
Expression
(\d+)?-?(\d+)-(\d+)
Description
Normaly US 10 digit numbers are writen as xxx.xxx.xxxx or xxx-xxx-xxxx or simply 7 digit numbers for local websites where area code is filled by default xxx.xxxx or xxx-xxxx
Matches
xxx.xxx.xxxx or xxx-xxx-xxxx or xxx.xxxx
Non-Matches
xxxx
Author Rating: The rating for this expression. Kumar Deepak Ranjan
Title Test Details US Currency (Dollar)
Expression
^\$(\d{1,3}(\,\d{3})*|(\d+))(\.\d{2})?$
Description
It should be universal regular expression for US currency.
Matches
$0.342 or $123.00, $1,234,422,345.0
Non-Matches
123
Author Rating: Not yet rated. Kumar Deepak Ranjan
Title Test Details Pager Number Syntax
Expression
[\d+]{10}\@[\w]+\.?[\w]+?\.?[\w]+?\.?[\w+]{2,4}/i
Description
Requires 10 digit number. Rest is same as email
Matches
Non-Matches
Author Rating: Not yet rated. Kumar Deepak Ranjan
Title Test Details Date Notation
Expression
^\$YYYY\$\$MM\$\$DD\$$
Description
Date Format notations. Mostly used in DB applications where rigorous pattern matching for DATE is required.
Matches
$YYYY$$MM$$DD$
Non-Matches
$YY$$MM$$DD$
Author Rating: Not yet rated. Kumar Deepak Ranjan
Title Test Details URL
Expression
^(\w+)s?\:\/\/(\w+)?(\.)?(\w+)?\.(\w+)$
Description
http://www.url.com || http://url.com || http://first.url.com || https://www.url.com || https://url.com
Matches
http://www.url.com | http://url.com | http://first.url.com | https://www.url.com | https://url.com
Non-Matches
http://.com
Author Rating: Not yet rated. Kumar Deepak Ranjan
Title Test Details URL v2
Expression
^(\w+)s?[:]\/\/(\w+)?[.]?(\w+)[.](\w+)$
Description
http://www.url.com || http://url.com || http://first.url.com || https://www.url.com || https://url.com
Matches
http://www.url.com | http://url.com | http://first.url.com | https://www.url.com | https://url.com
Non-Matches
http://.com
Author Rating: Not yet rated. Kumar Deepak Ranjan
Title Test Details Match if any Doctors or PHD. or MBA
Expression
/Dr[.]?|Phd[.]?|MBA/i
Description
Good way to quickly search for highly educated people in a list or file
Matches
Dr. Kumar Deepak Ranjan | Kumar Deepak Ranjan PHD. | Kumar Deepak Ranjan MBA
Non-Matches
None
Author Rating: Not yet rated. Kumar Deepak Ranjan
Title Test Details URL from a data file (Fields separated by |)
Expression
\|(http.*)\|(.*)$/ig
Description
ac80016-29181-12246003492|1224600413|ac8001629181-12246003492|M4.0-300-398598-1224600381630-721324|none|190.40.27.239|31,46,51,63,77,82,94,100 ,110,150,353,357,521,891,1171,1352,1744,2700,3286,4482,4552,4568,5500,5526,5665,7258,8586,9109,9255,10016,10810,11693,11784,11819|Mozilla/4.0(com patible;MSIE7.0;WindowsNT6.0;WOW64;SLCC1;.NETCLR2.0.50727;.NETCLR3.0.04506;.NETCLR1.1.4322;InfoPath.2)|http://www.univision.com/uv/music/1169286/Enrique_Iglesias/fotos|/html.ng/SITE=AUDIT&CHANNEL=PORTAL&SUBCHANNEL=POP&SECTION=IGLESIASENRIQUE&CONTENT=PHOTOGALLERY&PARTNER=UNIVISION&CLIENT=AR
Matches
http://www.crapster.com/crap/me.php/site=1&venue=2
Non-Matches
Other part of line
Author Rating: Not yet rated. Kumar Deepak Ranjan
   Displaying page 1 of 1 pages; Items 1 to 9

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