[% SET s = "Hi Mom!" %]
[% "Match!" IF s.search('(?i)mom') %]
[% "Match!" IF s.search('(?i:m)om') %]You can set flags inside the regexes for case, etc. see `man perlre' and search for `Extended Patterns' Very handy trick. (?imsx) and you can turn it back off for parts with (?-imsx) Now /g is a whole other issue still but that trick should help you some. [EMAIL PROTECTED] wrote: > Any chance of having the /i and /s modifiers for matches and search > and the option not to have the /g modifier for replace? > > I've been replacing \n with \r in my templates before doing a replace > in order to be able to get it to treat the string as a single line > (then I replace all occurances of \r with \n -- I know I don't have > any carriage returns in my data). --mark mills Xodiax Engineering <[EMAIL PROTECTED]>
