Hi there,
I'm struggling a bit with this.
This works fine:
line 99: preg_match('^\s', $xmlElem)
However, I shouldn't be writing the pattern there directly, because the pattern is in a tab-separated file.
If I get it with fgetcsv and put it in another variable
$pattern = $data[0];
echo $pattern; // outputs ^\s
and then use that variable in the above match
line 99: preg_match('/'. $pattern .'/', $xmlElem)
then I get an error like:
and there's no match.
Could anyone help me out? Thank you so much!
Cheers, Manuel