[pmwiki-users] Re: recipe programming special markup

Patrick R. Michaud pmichaud at pobox.com
Sun Sep 11 08:46:32 CDT 2005

Correction to my previous message, for the record:

On Sat, Sep 10, 2005 at 10:04:12PM -0500, Patrick R. Michaud wrote:
> Here are my suggestions -- first, I wouldn't use (?m:^) to try
> to match the beginning of a line.  Just match a newline directly, 
> or do a lookbehind for a newline.  Second, I don't think you need to
> capture the text following the !!!'s for this.  So, something like
>     Markup('preHeader', '<include',
>       "/(\\n!{1,6})/",
>       "xxxxx$1");
> is probably what you want.

I'm not sure about those double backslashes above; instead it
should probably be:

     Markup('preHeader', '<include',


More information about the pmwiki-users mailing list