From: "Peña, Botp" Date: 2007-08-16T13:43:33+09:00 Subject: Re: removing quotes in a string From: Grace Xue [mailto:grace@whostolemymoney.com] # Hi, does anyone know of a good way to remove leading and # trailing quotes (") in a string please? irb(main):037:0> s=%("this is a test") => "\"this is a test\"" irb(main):038:0> s.gsub!(/^"(.*?)"$/,'\1') => "this is a test" irb(main):039:0> s => "this is a test" irb(main):040:0> kind regards -botp