From: chad fowler Date: 2001-03-06T20:59:42+09:00 Subject: [ruby-talk:12119] Re: String.gsub() > def replaceSingleQuotesWithDouble( inputString ) > puts "original="+inputString > > puts inputString.gsub(/'(.+)'/, "\"\1\"") > end > > replaceSingleQuotesWithDouble("foo 'bar' foo") > if you changed it to: puts inputString.gsub(/'(.+)'/, '"\1"') ...it might behave more like you expect. Chad __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/