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

> "a".gsub("a") {"\\8?"}

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

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

-a

-- 

 ====================================
 | 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
 ====================================