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