In the following string I need to extract only 2014-04-19 using php and regex with preg_match
...</abbr></td><td><abbr class="dtend" title="2014-04-19T00:00:00+00:00">19 Apr 2014</abbr></td></tr>...
The preg_match and regex string I use is:
preg_match("/class=\"dtend\" title=\"(.*)\"\>/i", $str,$str2);
The string I obtain is:
2014-04-19T00:00:00+00:00
After "T" numbers (time) are obviously random. I amm not very experienced, neither novice, but really can't fix the issue. Can you provide a suggestion/some help?