[pmwiki-users] thoughts on PTVs, (:include:) and editing forms
Patrick R. Michaud
pmichaud at pobox.com
Tue Nov 13 12:28:17 CST 2007
On Tue, Nov 13, 2007 at 04:47:53PM +0000, Hans wrote:
> 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";
Ah, yes, this is correct.
Pm
More information about the pmwiki-users
mailing list