Gsub and "\\"

Hi,

Thanks Alia. Although I was after a general solution
and evetually found:

“a”.gsub(“a”) {"\8?"}

which works as expected…

Thanks anyway,

Karsten

···


http://fastmail.fm - Same, same, but different…

‘a’.gsub(‘a’) { %q{\8?} }

the %q operator is nice for this… it saves having to escape the escapes…

-a

···

On Tue, 29 Oct 2002 coma_killen@fastmail.fm wrote:

“a”.gsub(“a”) {“\8?”}

====================================

Ara Howard
NOAA Forecast Systems Laboratory
Information and Technology Services
Data Systems Group
R/FST 325 Broadway
Boulder, CO 80305-3328
Email: ahoward@fsl.noaa.gov
Phone: 303-497-7238
Fax: 303-497-7259
====================================