<?php
$txt='11:Jan:2019 "This is an Example!"';
$re1='.*?';
$re2='1';
$re3='(1)';
$re4='.*?';
$re5='(?:(?:[0-2]?\\d{1})|(?:[3][01]{1}))(?![\\d])';
$re6='.*?';
$re7='((?:(?:[0-2]?\\d{1})|(?:[3][01]{1})))(?![\\d])';
if ($c=preg_match_all ("/".$re1.$re2.$re3.$re4.$re5.$re6.$re7."/is", $txt, $matches))
{
$c1=$matches[1][0];
$day1=$matches[2][0];
print "($c1) ($day1) \n";
}
?>
|