<?php
$txt='15:Mar:2019 "This is an Example!"';
$re1='.*?';
$re2='([a-z])';
$re3='.*?';
$re4='((?:(?:[1]{1}\\d{1}\\d{1}\\d{1})|(?:[2]{1}\\d{3})))(?![\\d])';
if ($c=preg_match_all ("/".$re1.$re2.$re3.$re4."/is", $txt, $matches))
{
$w1=$matches[1][0];
$year1=$matches[2][0];
print "($w1) ($year1) \n";
}
?>
|