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 Pattern Title
Expression
^(?<From>(JANUARY|FEBRUARY|MARCH|APRIL|MAY|JUNE|JULY|AUGUST|SEPTEMBER|OCTOBER|NOVEMBER|DECEMBER|[ ]|,|/|[0-9])+)(-|–|:|TO)?(?<To>(JANUARY|FEBRUARY|MARCH|APRIL|MAY|JUNE|JULY|AUGUST|SEPTEMBER|OCTOBER|NOVEMBER|DECEMBER|[ ]|,|/|[0-9]|PRESENT)+)+(:)*
Description
This regular expression will match date given in any format expcept (mmm). Its speciality is that it divides dates into &lt;from&gt; part and &lt;to&gt; part. Use Groups to access these parts. e.g. JANUARY 1998 TO JUNE 2000 &lt;From&gt;=&quot;JANUARY 1998&quot; &lt;to&gt;=&quot;JUNE 2000&quot;
Matches
JANUARY 2000 | 19-01-2000 | 12/11/2000
Non-Matches
"Hello it is ordinary text" | "non -date text"
Author Rating: Not yet rated. Manpreet Grewal
Title Test Details Pattern Title
Expression
(?<Telephone>([0-9]|[ ]|[-]|[\(]|[\)]|ext.|[,])+)([ ]|[:]|\t|[-])*(?<Where>Home|Office|Work|Away|Fax|FAX|Phone)|(?<Where>Home|Office|Work|Away|Fax|FAX|Phone|Daytime|Evening)([ ]|[:]|\t|[-])*(?<Telephone>([0-9]|[ ]|[-]|[\(]|[\)]|ext.|[,])+)|(?<Telephone>([(]([0-9]){3}[)]([ ])?([0-9]){3}([ ]|-)([0-9]){4}))
Description
Its extracts telephone numbers
Matches
(913) 451-6461
Non-Matches
3523d3adb3
Author Rating: Not yet rated. Manpreet Grewal
Title Test Details Pattern Title
Expression
(?<http>(http:[/][/]|www.)([a-z]|[A-Z]|[0-9]|[/.]|[~])*)
Description
This is HTTP Url extractor
Matches
http://www.abc.com | www.mpgrewal.tk
Non-Matches
noida-India | crazy123
Author Rating: The rating for this expression. Manpreet Grewal
Title Test Details Pattern Title
Expression
(?<email>(?![ ])(\w|[.])*@(\w|[.])*)
Description
E-mail addresses matcher
Matches
mpgrewal@rediffmail.com
Non-Matches
arnoldschwarz
Author Rating: Not yet rated. Manpreet Grewal
   Displaying page 1 of 1 pages; Items 1 to 4

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