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