[pmwiki-users] Truncate PageTitle

Dominique Faure dominique.faure at gmail.com
Mon Aug 20 11:42:35 CDT 2012


On Mon, Aug 20, 2012 at 1:30 PM, Brian Tibbels
<brian.tibbels at clickmarlow.co.uk> wrote:
>
>
> I need to truncate a page title for side bar presentation
> (:title Language - Full Page Title:)

Using MarkupExprPlus as suggested by Peter, the following expression will do it:

{(reg_replace '/^.*\s+-\s*/' '' '{$Title}')}

-- 
Dominique



More information about the pmwiki-users mailing list