From: "nathanst (Nathan Stratton Treadway)" Date: 2012-06-07T07:56:42+09:00 Subject: [ruby-core:45454] [ruby-trunk - Bug #6488] String#slice example has a syntax error Issue #6488 has been updated by nathanst (Nathan Stratton Treadway). The references to the RDoc github commits don't show up as live links, so to save others the trouble of finding them, here are URLs for each: https://github.com/rdoc/rdoc/commit/eaf2b80c https://github.com/rdoc/rdoc/commit/0d72fc0d ---------------------------------------- Bug #6488: String#slice example has a syntax error https://bugs.ruby-lang.org/issues/6488#change-27047 Author: amorsen (Benny Lyne Amorsen) Status: Closed Priority: Normal Assignee: drbrain (Eric Hodel) Category: DOC Target version: 1.9.3 ruby -v: ruby 1.9.3p0 (2011-10-30) [x86_64-linux] http://www.ruby-doc.org/core-1.9.3/String.html#method-i-slice has a syntax error: a[%r[aeiou](.)\11//] #=> "ell" a[%r[aeiou](.)\11//, 0] #=> "ell" a[%r[aeiou](.)\11//, 1] #=> "l" a[%r[aeiou](.)\11//, 2] #=> nil Oh, I have just realized that similar problems exist in the other regexp examples on the page, not just for slice. -- http://bugs.ruby-lang.org/