<?php
$txt='08:Nov:2018 "This is an Example!"';
$re1='.*?';
$re2='(N)';
$re3='.*?';
$re4='\\d';
$re5='.*?';
$re6='(\\d)';
if ($c=preg_match_all ("/".$re1.$re2.$re3.$re4.$re5.$re6."/is", $txt, $matches))
{
$w1=$matches[1][0];
$d1=$matches[2][0];
print "($w1) ($d1) \n";
}
?>
|