From: Robert Klemme Date: 2004-01-23T17:44:59+09:00 Subject: Re: gsub oddity? "Mark J. Reed" schrieb im Newsbeitrag news:20040122155713.GC27950@mulan.thereeds.org... > On Thu, Jan 22, 2004 at 09:15:35AM +0100, Robert Klemme wrote: > > > > "Mark J. Reed" schrieb im Newsbeitrag > > news:20040121221951.GD16733@mulan.thereeds.org... > > > On Thu, Jan 22, 2004 at 06:57:22AM +0900, Ralph Mason wrote: > > > > What am I missing here. I am trying to replace a single quote with > > the > > > > string \' > > > > > > You're missing an extra level of processing applied to the replacement > > > string for gsub in order to let you include parts of what you're > > > replacing. > > > > No, in this case he's missing extra backslashes: > > Did you not read the rest of my post, when I pointed that out and > supplied the solution? I answered the original question in terms > of what he was missing in the colloquial sense of being unaware of. Apparently I misunderstood you here. I'm sorry. Kind regards robert