From: Harry Date: 2007-03-07T23:05:45+09:00 Subject: Re: Regular expressions - Again > You may be lucky with since it's likely to not include any > attributes, but still there might be some whitespace INSIDE the tags, > > Jenda > str = "This is <title> what I\n\n\n\n \n want and no more" p str str =~ /(.*?)<\/title>/m p $1.gsub(/(\n|\s)+/, " ").strip -- http://www.kakueki.com/ruby/list.html Japanese Ruby List Subjects in English