From: Wes Gamble Date: 2006-05-24T05:06:45+09:00 Subject: Re: Regexp help: Matching HTML having trouble w/greediness Robert Dober wrote: > On 5/23/06, Wes Gamble wrote: >> > substitution that I'm doing. >> > " in an HTML attribute (you would achieve the desired affect with >). I agree that perhaps regexen are not the best way to manipulate this - however, I've already been down the path of using a HTML parser (RubyfulSoup/htmltools) and trying to output the resulting parse tree. Unfortunately, that parser attempts to "fix" the HTML for me and when I attempt to render the fixed HTML in a browser, it is "too fixed" for the browser to handle. So unfortunately, I'm forced to accept what I get and only change it so that I don't break any existing stuff. Hence, I'm using regexen to do my write - manipulation. Thanks for the help though! Wes -- Posted via http://www.ruby-forum.com/.