I wrote the following code and it does NOT seem to work.
$search = array('/<popup[^>]*>/ie');
$replace = array('make_pop up(split_tag(\\ 0))');
preg_replace($s earch, $replace, $someText);
If I try the following code, then the replacing seems to work (I just try to get a
dummy back reference \\1)
$search = array('/<p(op)up[^>]*>/ie');
$replace = array('make_pop up(split_tag(\\ 1))');
preg_replace($s earch, $replace, $someText);
What is wrong in the first part? Thanks and cheers,
richard
$search = array('/<popup[^>]*>/ie');
$replace = array('make_pop up(split_tag(\\ 0))');
preg_replace($s earch, $replace, $someText);
If I try the following code, then the replacing seems to work (I just try to get a
dummy back reference \\1)
$search = array('/<p(op)up[^>]*>/ie');
$replace = array('make_pop up(split_tag(\\ 1))');
preg_replace($s earch, $replace, $someText);
What is wrong in the first part? Thanks and cheers,
richard
Comment