From: Joel VanderWerf Date: 2002-09-16T11:43:53+09:00 Subject: Re: camelCaseTo_ruby_case.rb ?? Two comments: 1. #gsub! has big teeth and will bite you: "FooBar".decamel # ==> nil It seems ok with #gsub instead of the first occurrence of #gsub!. 2. How will you handle quotation of various kinds? "decamel replaces 'camelVar' with 'camel_var'".decamel # ==> "decamel replaces 'camel_var' with 'camel_var'" The fact that %{ } can be nested means you'll need something more than regexes... (p.s., for some reason my mail client, Mozilla 1.0, won't quote your message...)