Return to Snippet

Revision: 15973
at July 22, 2009 04:11 by dreadwarrior

Updated Code

Revision: 15972
at July 22, 2009 03:48 by dreadwarrior

Initial Code

Initial URL

Initial Description
This snippet is useful if you want to extract the relevant parts out of an Date header field of an email message. It was created according to the [RFC 5322 rules]( "RFC 5322, Page 15"). It supports named capturing groups for easier access of the date parts.

tested in PHP 5.2.6


* deal with obs-% data

Initial Title
Regular Expression, getting all parts of a E-Mail Date Header field

Initial Tags
regex, regexp

Initial Language
Regular Expression