In article <20031126184634.GB1520 / mulan.thereeds.org>,
Mark J. Reed <markjreed / mail.com> wrote:

>	irb(main):006:0> str.sub(/'/) { '\\\'' }
>	=> "isn\\'t stands for is not"

Sometimes it is useful to pick your quotes carefully e.g.

  str.sub(/'/) { '\\\'' }

as you're quoting a single quote then using double quotes saves a \

  str.sub(/'/) { "\\'" }

Mike

-- 
mike / stok.co.uk                    |           The "`Stok' disclaimers" apply.
http://www.stok.co.uk/~mike/       | GPG PGP Key      1024D/059913DA 
mike / exegenix.com                  | Fingerprint      0570 71CD 6790 7C28 3D60
http://www.exegenix.com/           |                  75D2 9EC4 C1C0 0599 13DA