>>>>> "n" == noreply <noreply / rubyforge.org> writes: n> substr.scan(PATTERN_REGEXP) { n> pre_match = $1 n> inner_match = $2 n> puts "PRE MATCH = " + pre_match if pre_match != nil n> puts "INNER MATCH = " + inner_match if inner_match != nil break unless /<%=gettext|\{\{/ =~ $' # not tested n> } 2 things that you must never forget : * eval is evil * the regexp engine is stupid :-) Guy Decoux