regex for textual dates? (aka source code for php's strtotime )

wilburcoyote

New Member
I'm working on the search box for an events website. I've been recording the searches people make and alot of people are entering a {date}+{keyword} combo.example searches:\[code\]jazz 5th novemberdj shadow tonight2nd october live music\[/code\]so I need to write/find a regex that can match textual dates from within a longer string.I'm thinking the easiest way to do this would be to work from the source code for PHP's \[code\]strtotime()\[/code\] , assuming it runs on regular expressions.Can anyone give me any tips for obtaining the source or alternatively has anyone come across any good regular expressions for textual dates?
 
Back
Top