From: "phasis68 (Heesob Park)" Date: 2012-12-08T17:19:24+09:00 Subject: [ruby-core:50692] [ruby-trunk - Bug #7534] /(?i:[\W])/ and /(?i:[\w])/ both match "s" Issue #7534 has been updated by phasis68 (Heesob Park). As far as I can remember, this issue is two years old. Refer to #4044 ---------------------------------------- Bug #7534: /(?i:[\W])/ and /(?i:[\w])/ both match "s" https://bugs.ruby-lang.org/issues/7534#change-34537 Author: hasari (Hiro Asari) Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: ruby 2.0.0dev (2012-12-08 trunk 38268) [x86_64-darwin12.2.1] If you drop any of the 3 conditions - case-insensitivity, character class, or "s" - this bug does not happen. See https://gist.github.com/4238886 -- http://bugs.ruby-lang.org/