<?php
# URL that generated this code:
# http://txt2re.com/index-php.php3?s=42%2043&2&-1&-5
$txt='42 43';
$re1='(42)'; # Integer Number 1
$re2='( )'; # White Space 1
$re3='(\\d+)'; # Integer Number 2
if ($c=preg_match_all ("/".$re1.$re2.$re3."/is", $txt, $matches))
{
$int1=$matches[1][0];
$ws1=$matches[2][0];
$int2=$matches[3][0];
print "($int1) ($ws1) ($int2) \n";
}
#-----
# Paste the code into a new php file. Then in Unix:
# $ php x.php
#-----
?>