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