I was wondering if the PERL syntax of $1 and $2 ... work the same way in PHP. I have the following lines of PERL:
if (/.{1,400}e-(\d+)\s+/)
{
$sc = $1;
}
if (/((\S+)\s+letters)/)
{
$lt = $1;
}
if (/Query=\s+(\S+)/)
{
$qr = $1;
}
How might I write what using one of the preg_* functions in PHP? Thanks for your help.