<font><font face="courier new,monospace">Thank you Peter. Unfortunately the "Language" part is variable in length. I suppose I'm looking for the equivalent of a "strpos" in expressions.<br clear="all">

</font></font><font style="font-family:verdana,sans-serif" face="'courier new', monospace"><div><div style="text-align:left"><br></div></div></font>
<br><br><div class="gmail_quote">On 20 August 2012 13:11, Peter Bowers <span dir="ltr"><<a href="mailto:pbowers@pobox.com" target="_blank">pbowers@pobox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>On Mon, Aug 20, 2012 at 1:30 PM, Brian Tibbels<br>
<<a href="mailto:brian.tibbels@clickmarlow.co.uk" target="_blank">brian.tibbels@clickmarlow.co.uk</a>> wrote:<br>
> I need to truncate a page title for side bar presentation<br>
> (:title Language - Full Page Title:)<br>
><br>
> I need the text after " - ".<br>
<br>
</div>If the "Language -" part is a constant length across all pages then<br>
standard markup expressions with the {(substr ...)} would handle it.<br>
<br>
I'm guessing, however, that the length of the "Language -" part<br>
changes.  In that case you could use the {(reg_replace ...)} features<br>
of MarkupExpressionPlus<br>
(<a href="http://www.pmwiki.org/wiki/Cookbook/MarkupExprPlus" target="_blank">http://www.pmwiki.org/wiki/Cookbook/MarkupExprPlus</a>) or the {(sed<br>
...)} features of WikiSh (<a href="http://www.pmwiki.org/wiki/Cookbook/WikiSh" target="_blank">http://www.pmwiki.org/wiki/Cookbook/WikiSh</a>).<br>
<br>
Or you could come up with your own PV that hardcodes the deletion of<br>
the text up to the dash:<br>
<br>
$FmtPV['$TitleShort'] = 'array_pop(explode(" - ",<br>
FmtPageTitle(@$page["title"], $name, 1)))';<br>
<br>
(There are probably more elegant ways to accomplish this last but this<br>
should give you an idea where to start.)<br>
<span><font color="#888888"><br>
-Peter<br>
</font></span></blockquote></div><br>