From: ts Date: 2001-07-16T20:55:32+09:00 Subject: [ruby-talk:17915] Re: regular expressions and string#sub! >>>>> "E" == Ernest Ellingson 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