[pmwiki-devel] breakpage markup

Patrick R. Michaud pmichaud at pobox.com
Thu Apr 12 08:25:57 CDT 2007


On Thu, Apr 12, 2007 at 02:19:11PM +0100, Hans wrote:
> I am failing to get the following breakpage markup to run the
> function. Can someone tell me what I am missing?
> 
> if ($action=='browse')
>    Markup('breakpage3','>include','/^#foxbegin.*$/se',
>       "FoxForumPageBreak(\$pagename,PSS('$0'))");
> 
> The echo is my debug tool. I never get it.
> 
> The page has several #foxbegin lines in it, all at a line start.

Your pattern probably needs to be

    /^#foxbegin/me

Without a /m flag, the ^ means "beginning of string", not 
"beginning of line".  

Pm



More information about the pmwiki-devel mailing list