On 10/30/07, Hans <[EMAIL PROTECTED]> wrote: > Tuesday, October 30, 2007, 1:29:57 PM, Dominique wrote: > > > With: > > > $MarkupExpr['wikiword'] = > > 'preg_replace(array_keys($GLOBALS["MakePageNamePatterns"]),' > > . > > 'array_values($GLOBALS["MakePageNamePatterns"]),' > > . 'preg_replace($rpat, $rrep, $params))', > > > A spaced string would be transformed into a Compliant pagename. > > Thank you! That would be the more compliant solution, as the link > appearing to point to an author's Profile is using > MakePageNamePatterns as well. And not only spaces will be removed, > but also other characters not compliant with page names. > > Is there a lot of overhead involved processing these markup > expressions on a forum page you think? There will be around 4 markup > expressions per post to evaluate, so it could go easily into the > hundreds. > >
Can't you apply a kind of replace-on-save policy there? -- Dominique _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
