> You may be lucky with <title> 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     </title> and no more"
p str

str =~ /<title>(.*?)<\/title>/m
p $1.gsub(/(\n|\s)+/, " ").strip


-- 

http://www.kakueki.com/ruby/list.html
Japanese Ruby List Subjects in English