[pmwiki-users] Custom Markup: $2 does not work correctly (regexp problem?)

Dominique Faure dominique.faure at gmail.com
Fri Aug 25 08:12:51 CDT 2006


On 8/25/06, Dawid Gajownik <gajownik at gmail.com> wrote:
> On 8/25/06, Dominique Faure <dominique.faure at gmail.com> wrote:
> > What about:
> >
> > '/\\(:boxfile\\s+([^|]+)\\|\\s*(.*?):\\)/s' ?
>
> With this regexp PMWiki stopped recognizing this markup. :(
> http://wiki.fedorapl.org/Main/WikiSandbox
>

In fact the problem didn't come from the regexp. The code below works:

Markup("boxfile", "<split",
  '/\\(:boxfile\s+([^|]+)\|\s*(.*?):\\)/se',
  "'<:block>'.Keep('<div class=\"boxfile\"><p><strong>File:</strong>
$1</p><pre>$2</pre></div>')");

Regards,
Dom




More information about the pmwiki-users mailing list