Topic: perl -> php regex
code:
if (preg_match('/^diff -urN punbb_vanilla\/(.*) punbb_____mod\/\1$/', $diff_urN[$dln]))
{
# Grab the filename
$fname = ${1};
print '$fname:'.$fname;
} else print 'I love perl... but I #$@% php regex';
output:
$fname:
What am I doing wrong here? please don't tell me I have to use the match array X.X Anyone even know why they call it a perl compatible regex? Couldn't be further from the truth...