I need to extract the date from a string, below is my code and the string.
$str = "Updated status to Masters - Software Engineering (Enrolled-
Documents to Send) on 03/06/2014 14:10 by Rabih Haddad .";
if(preg_match_all('/.*([A-Za-z]{3,4}, [A-Za-z]{3,4} [\d]{1,2}, [\d]{4}).*/',$str,$matches))
{
print_r($matches);
}
else
echo "not matched";
How can I extract date(03/06/2014)
value from the string.