[pmwiki-users] thoughts on PTVs, (:include:) and editing forms

Hans design5 at softflow.co.uk
Tue Nov 13 10:47:53 CST 2007


Tuesday, November 13, 2007, 4:38:50 PM, Hans wrote:

> I can grab the section apparently, edit it, save it, but the section
> end anchor is gone, swallowed somewhere along the line.
> Maybe the pattern needs tweaking?

I had to remove the ?: before the ending anchor, so the pattern is
now:

$PageTextVarPatterns['[[#anchor]]'] =
  "/(\\[\\[#(\\w[-\\w]*)\\]\\](?: *\n)?)(.*?)(\\[\\[#\\2end\\]\\])/s";


  ~Hans




More information about the pmwiki-users mailing list