[pmwiki-users] PageTextVariables and Spaces

Hans design5 at softflow.co.uk
Tue Oct 30 08:46:35 CDT 2007


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.


Hans




More information about the pmwiki-users mailing list