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 5
Title Test Details E-Mail Date and Time
Expression
(?:[a-z]{3},\s+)?(\d{1,2})\s+([a-z]{3})\s+(\d{4})\s+([01][0-9]|2[0-3])\:([0-5][0-9])
Description
Extracts Day, Monthname, Year, Hour and Minute into 5 Groups. This Regex is useful for E-Mail Apps.
Matches
Fri, 7 Dec 2007 17:48:46 +0100 | 07 DEC 2007 17:35
Non-Matches
07.12.2007 | AAA bb CCCC DDDDD 85:88
Author Rating: Not yet rated. NoBug
Title Test Details Address Parser
Expression
^(\d{3,})\s?(\w{0,5})\s([a-zA-Z]{2,30})\s([a-zA-Z]{2,15})\.?\s?(\w{0,5})$
Description
A quick and dirty expression for splitting up a generic street address
Matches
101 W Main St | 101 W Main St. N | 101 Main St N
Non-Matches
Main St | 55a Main St | 101 W Main St Apt 5
Author Rating: The rating for this expression. NoBug
Title Test Details extract all URLs from a string
Expression
'`.*?((http|ftp|https)://[\w#$&+,\/:;=?@.-]+)[^\w#$&+,\/:;=?@.-]*?`i'
Description
With this expresion you ll be able to extract all the urls of a given text or HTML page. Works fine using the PHP preg_match function
Matches
<a href="http://foobar.com"> | Hello world I'm a http://google.fr | Did you mean:http://google.fr/index.php?id=1&b=6#2310
Non-Matches
http:// | http://<foobar | www.google.fr
Author Rating: The rating for this expression. NoBug
Title Test Details DateTime Australia
Expression
^((((31\/(0?[13578]|1[02]))|((29|30)\/(0?[1,3-9]|1[0-2])))\/(1[6-9]|[2-9]\d)?\d{2})|(29\/0?2\/(((1[6-9]|[2-9]\d)?(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))))|(0?[1-9]|1\d|2[0-8])\/((0?[1-9])|(1[0-2]))\/((1[6-9]|[2-9]\d)?\d{2})) (20|21|22|23|[0-1]?\d):([0-5]?)\d$
Description
dd/mm/yyyy HH:MM
Matches
31/12/2010 14:00
Non-Matches
12/31/2010 14:61
Author Rating: Not yet rated. NoBug
   Displaying page 1 of 1 pages; Items 1 to 5

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