date pattern
Posted: Mon Apr 19, 2010 2:14 am
Hi
I have read some tutorials for regular expressions but I'm still unable to detect date patterns
for example I have a string like:
I need to capture "2010-04-19T05:17:00+00:00" in $match[] using preg_match where <updated> </updated> is presented
How can I achieve that?
Thanks for your help
I have read some tutorials for regular expressions but I'm still unable to detect date patterns
for example I have a string like:
Code: Select all
$string="<updated>2010-04-19T05:17:00+00:00</updated>";How can I achieve that?
Thanks for your help