<?php
$txt='42 43';
$re1='.*?';
$re2='.';
$re3='(.)';
$re4='( )';
$re5='(\\d+)';
if ($c=preg_match_all ("/".$re1.$re2.$re3.$re4.$re5."/is", $txt, $matches))
{
$c1=$matches[1][0];
$c2=$matches[2][0];
$int1=$matches[3][0];
print "($c1) ($c2) ($int1) \n";
}
?>
|