From: Daniel Carrera Date: 2003-12-17T04:47:39+09:00 Subject: Re: substituting apostrphe's Backspace the apostrophe. >> a = "'" => "'" >> a.gsub!(/\'/, "***") => "***" Cheers, Daniel. On Wed, Dec 17, 2003 at 04:44:36AM +0900, Daniel Bretoi wrote: > Hi, > > I have a bit of a problem, I can't seem to substitute an apostrphe > successfully > > a = "'" > a.gsub!(/'/,'\\\'') > puts a > > gives me nothing. > > two backslash gives me syntax error. > > one backslash gives me just the apostrophy. > > How do I do this? > > db > > -- > A.D. 1844: Samuel Morse invents Morse code. Cryptography export > restrictions prevent the telegraph's use outside the U.S. and Canada. -- Daniel Carrera | "Software is like sex. It's better when it's free". PhD student. | Math Dept. UMD | -- Linus Torvalds