[pmwiki-users] ZAP erase pattern problem...

The Editor editor at fast.st
Thu Apr 12 20:50:56 CDT 2007


I'm trying to get ZAP to erase hidden variables by this pattern

$newpage['text'] = preg_replace('/\\(\\:'.$ff.' (.*?)\\:\\)/s', '',
$newpage['text']);

but it seems to not be working.

also I'd like to get it to delete along with an ending \n if it exists
or without it, so I don't end up with an extra line everytime the
variable is deleted/resaved.

Can someone help me?  I had this working before but somewhere it got
messed up. I've checked that $ff and the page text are what they are
supposed to be.

Cheers,
Dan



More information about the pmwiki-users mailing list