From: Daniel N Date: 2007-08-16T13:32:10+09:00 Subject: Re: removing quotes in a string ------=_Part_22984_12548636.1187238728205 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 8/16/07, Grace Xue wrote: > > Hi, does anyone know of a good way to remove leading and trailing quotes > (") in a string please? > > Thanks > > Grace One way would be to use two gsubs string.gsub( /\A"/m, "" ).gsub( /"\Z/m, "" ) Bit simplistic maybe HTH Daniel ------=_Part_22984_12548636.1187238728205--