On Wed, Apr 25, 2007 at 03:48:45PM +0200, noskule wrote:
> hi list
> I seen the markup expressions but could not find something like explode
> to separate something like -XXX:
>
> PageName-Discussion -> PageName
If you know that you want to strip off "-Discussion", you can do:
$BaseNamePatterns['/-Discussion$/'] = '';
Then {$BaseName} for PageName-Discussion will result in "PageName".
Or, if you just want $BaseName to strip everything after a
hyphen, it's
$BaseNamePatterns['/-.*$/'] = '';
Pm
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users