Hi I have something like this:
$content = preg_replace('#(\s*)\<pre(.*?)\>(.*?)\</pre\>(\s*)#sie', 'dostuff(\'\\3\', \'\\2\', $content, \'\', \'\\1\', \'\\4\');', $content);
and
$content = preg_replace('#(\s*)\<code(.*?)\>(.*?)\</code\>(\s*)#sie', 'dostuff(\'\\3\', \'\\2\', $content, \'\', \'\\1\', \'\\4\');', $content);
How can I pass a true/false argument to the dostuff function inside, depending on the element that's being regexed? If it's <pre> to be true, and if it's <code> to be false?
e-modifier oreval. There are exceptions, but they are rare. Right now I could do a simple<code>', eval(My code goes here), '</code>and would have a nice arbitrary-code-execution console for your site ;)