>>>>> "E" == Ernest Ellingson <erne / powernav.com> writes:

E> Thanks matz.  However, I'm still stuck with the question.  How does one use 
E> string#sub! to go from aren't to aren\'t?


pigeon% cat b.rb
#!/usr/bin/ruby 
s = %q{aren't}
s.sub!(/'/, %q{\\\'})
puts s
pigeon% 

pigeon% b.rb
aren\'t
pigeon% 


Guy Decoux