<?php
$txt='11:Jan:2019 "This is an Example!"';
$re1='.*?';
$re2='(19)';
$re3='.*?';
$re4='.';
$re5='.*?';
$re6='.';
$re7='.*?';
$re8='.';
$re9='.*?';
$re10='.';
$re11='.*?';
$re12='.';
$re13='.*?';
$re14='.';
$re15='.*?';
$re16='.';
$re17='.*?';
$re18='.';
$re19='.*?';
$re20='(.)';
if ($c=preg_match_all ("/".$re1.$re2.$re3.$re4.$re5.$re6.$re7.$re8.$re9.$re10.$re11.$re12.$re13.$re14.$re15.$re16.$re17.$re18.$re19.$re20."/is", $txt, $matches))
{
$day1=$matches[1][0];
$c1=$matches[2][0];
print "($day1) ($c1) \n";
}
?>
|