> Is there (I bet there is) a simple way to retrieve the
> first character of a string stored in a TT variable?
>
> I found some ways which are either not simple
> or don't work:
>
> Simple, but does not work:
> [% text.replace('(.).*','$1') %] expands to '$1'
I think that needs to have doublequotes around the "$1" if you want it to interpret.
[% text.replace('^(.).*',"$1") %]
