I am trying to use a regular expression, but it seems that php doesn't like the backlashes in the expression, because it returns:
"Delimiter must not be alphanumeric or backslash in...bla bla bla".
the regular expression appreas in the code:
Code: Select all
<?php
$pattern ="include\('^.*?$'\)";
?>beeing the expression (i am new to regex, so I wouldn't be surprised if it doesn't make any sense).
Just so you know, with this expression I'm trying to match anything between
"include('"
and
"')"
However, I should first be able to use backlashes as needed in my regex. How do I do that without upseting php parsing?