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

Dominique Faure dominique.faure at gmail.com
Fri Aug 25 03:11:15 CDT 2006

On 8/24/06, Dawid Gajownik <gajownik at gmail.com> wrote:
> Hi!
>         I wanted to unify look of articles in my wiki so I started creating
> custom markup similar to this one →
> http://gentoo-wiki.com/Gentoo_Linux_Wiki:Text_Formatting_Templates
> Simple things with one parameter works correctly. There are problems
> with more complicated ones, though. For instance I've created this markup:
> Markup("boxfile", "block", '/\\(:boxfile (.*?) | (.*?):\\)/s', "<div
> class=\"boxfile\"><p><strong>File:</strong> $1</p><pre>$2</pre></div>");
> (I'm not sure about this "block" option). Do I have to say that it does
> not work as expected? ;) Please take a look here →
> http://wiki.fedorapl.org/Main/WikiSandbox
> May someone suggest me how to fix it, please?
What about:

'/\\(:boxfile\\s+([^|]+)\\|\\s*(.*?):\\)/s' ?


More information about the pmwiki-users mailing list