From: Pistos Christou Date: 2006-05-06T03:15:20+09:00 Subject: Re: Noob Question - String Manipulation... Joseph Michaels wrote: >> I have a string that contains html formating. All I want is the plain >> text. > html_string.gsub(/<[^>]+>/, "") > Replacing that regex with something better, probably. gsubbing breaks down for more complex test cases, such as things containing source code, or problematic attribute strings (e.g. ). If you really want to be accurate, I suggest using an XML or HTML parsing tool, such as Mechanize or RubyfulSoup. Pistos -- Posted via http://www.ruby-forum.com/.