This is my current line:
Code: Select all
preg_match("/<([a-z])?\>(.*?)\<\/([a-z])?\>/", $str, $matches);Example:
Code: Select all
<php><? echo "hello world"; ?></php>Code: Select all
<php><?
echo "hello world";
?></php>Moderator: General Moderators
Code: Select all
preg_match("/<([a-z])?\>(.*?)\<\/([a-z])?\>/", $str, $matches);Code: Select all
<php><? echo "hello world"; ?></php>Code: Select all
<php><?
echo "hello world";
?></php>Code: Select all
preg_match("/<([a-z])?\>(.*?)\<\/([a-z])?\>/", $str, $matches);Code: Select all
preg_match("/<([a-z])?\>(.*?)\<\/([a-z])?\>/s", $str, $matches);