From: matz@... (Yukihiro Matsumoto) Date: 2001-12-20T01:33:49+09:00 Subject: [ruby-talk:28955] Re: Backslash Sequence Bug? Hi, In message "[ruby-talk:28916] Backslash Sequence Bug?" on 01/12/19, Jesse Jones writes: |According to the pickaxe book (page 64), this: | |text = "fred:smith" |puts text.sub(/(\w+):(\w+)/, "\2, \1") It should be: puts text.sub(/(\w+):(\w+)/, '\2, \1') matz.