[Templates] using variable in replace
Randal L. Schwartz
merlyn@stonehenge.com
12 Jan 2007 13:33:51 -0800
>>>>> "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.
--
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!