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