[Pmwiki-users] from to creating new page

Patrick R. Michaud pmichaud
Thu Nov 4 07:28:08 CST 2004


On Thu, Nov 04, 2004 at 02:57:00PM +0100, Knut Alboldt wrote:
> #------------------------
> Markup('createnewpage','directive','/\(:createnewpage\s+(.*):\)/e','Keep(CreateNewPage($pagename,"$1"))');
> 
> When I enter the new name and submit the form the same page is shown again 
> and the text is replaced by:
> 
> "newpagename:)(:groupfooter"
> 
> So what's wrong ?

You probably need a question mark after your ".*" in the first pattern.
Otherwise, ".*" can (and will) include any closing ":)" sequences as 
long as it finds another one to match later in the string.

Pm



More information about the pmwiki-users mailing list