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