From: "amorsen (Benny Lyne Amorsen)" Date: 2012-05-24T17:39:11+09:00 Subject: [ruby-core:45207] [ruby-trunk - Bug #6488][Open] String#slice example has a syntax error Issue #6488 has been reported by amorsen (Benny Lyne Amorsen). ---------------------------------------- Bug #6488: String#slice example has a syntax error https://bugs.ruby-lang.org/issues/6488 Author: amorsen (Benny Lyne Amorsen) Status: Open Priority: Normal Assignee: Category: 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/