From: "Thibaut Barrère" Date: 2007-08-29T20:50:08+09:00 Subject: Re: gsub help > This is not a job for regexps. This is a job for a ruby parser. Maybe parsing with http://www.zenspider.com/ZSS/Products/ParseTree/ then regenerating the source from the parsed output could be good. (didn't try myself - this is just a rough idea, and you would have to ensure nothing get missed by the parser!) Thibaut