[Templates] using variable in replace
James. L
perlwle@yahoo.com
Fri, 12 Jan 2007 13:53:20 -0800 (PST)
--- "Randal L. Schwartz" <merlyn@stonehenge.com>
wrote:
> >>>>> "James" == James L <perlwle@yahoo.com> writes:
>
> James> oh?? my purpose of using \b is word boundary.
>
>
> James> i probably should use single quote there like
>
> James> [% field | replace('\b${word}\b',>
> "<b>${word}</b>")
> James> %]
>
> James> but 'word' won't interpolate.
>
> No, you want \\b instead, just like I said.
argh, right. :^
btw, is this documentated in TT? I couldn't find it.
>
> --
> Randal L. Schwartz - Stonehenge Consulting Services,
> Inc. - +1 503 777 0095
> <merlyn@stonehenge.com>
> <URL:http://www.stonehenge.com/merlyn/>
> Perl/Unix/security consulting, Technical writing,
> Comedy, etc. etc.
> See PerlTraining.Stonehenge.com for onsite and
> open-enrollment Perl training!
>
james.
____________________________________________________________________________________
Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains.
http://farechase.yahoo.com/promo-generic-14795097