From: Paul Lutus Date: 2006-10-27T02:25:19+09:00 Subject: Re: Question about strings William Carpin wrote: / ... > I scoured Google for awhile but didn't find anything. Any ideas? #!/usr/bin/ruby -w a = "This is Will's string!" b = a.gsub(%r{'},"\\\\\'") puts a,b Output: This is Will's string! This is Will\'s string! -- Paul Lutus http://www.arachnoid.com