How can I extract the date from these two strings.
Date: 03/03 - 14:10
text
And from
Date/Time: 08/03/16 13:50
Summary of Fault:
I have tried
$matches = array();
$pattern = "/^.*\Date\/Time\:\b.*$/m";
preg_match($pattern, $toParse, $matches);
echo($matches[0]);
$matches = array();
$pattern = "/.*Date:.*/mi";
preg_match($pattern, $toParse, $matches);