I have the strings (in an array):
$a = "account Tel48201389 user@whatever.net dated 2013-07-01 in JHB".
and
$b = "installation on 2013-08-11 in PE".
I need to get the full date out of each of these strings using PHP only.
is it possible to use wildcards with pregmatch?
i tried:
preg_match('/(?P<'name'>\w+): (?P'<'digit-digit-digit'>'\d+)/', $str, $matches);
but it gives an error.
end result should be: $a = 2013-07-01"
and $b = "2013-08-11"
THanks!