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


_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to