<?php
$txt='11:Jan:2019 "This is an Example!"';
$re1='.*?';
$re2='i';
$re3='.*?';
$re4='(i)';
$re5='.*?';
$re6='[a-z]';
$re7='.*?';
$re8='[a-z]';
$re9='.*?';
$re10='[a-z]';
$re11='.*?';
$re12='([a-z])';
if ($c=preg_match_all ("/".$re1.$re2.$re3.$re4.$re5.$re6.$re7.$re8.$re9.$re10.$re11.$re12."/is", $txt, $matches))
{
$c1=$matches[1][0];
$w1=$matches[2][0];
print "($c1) ($w1) \n";
}
?>
|