>>>>> "C" == Christian Kaiser <chk / online.de> writes: C> I would assume this to be an error: it's called "eternal" match C> "<META http-equiv=\"Content-Type content=\"text/html; C> charset=iso-8859-1\">".gsub(/<(?:[^">]+|"[^"]*")+>/) { |sMatch| puts sMatch; C> ''} Don't give the possibility to backtrace, something like gsub(/<(?>[^">]+|"[^"]*")+>/) probably there is a better way to write it Guy Decoux