<?php
# URL that generated this code:
# http://txt2re.com/index-php.php3?s=42%2043&2&-10&9999
$txt='42 43';
$re1=''; # 1
$re2='.*?'; # Non-greedy match on filler
$re3='( )'; # Any Single Character 1
$re4='(\\d+)'; # Integer Number 1
if ($c=preg_match_all ("/".$re1.$re2.$re3.$re4."/is", $txt, $matches))
{
$1=$matches[1][0];
$c1=$matches[2][0];
$int1=$matches[3][0];
print "($1) ($c1) ($int1) \n";
}
#-----
# Paste the code into a new php file. Then in Unix:
# $ php x.php
#-----
?>