From: "hasari (Hiro Asari)" Date: 2012-12-08T15:12:36+09:00 Subject: [ruby-core:50687] [ruby-trunk - Bug #7534] /(?i:[\W])/ and /(?i:[\w])/ both match "s" Issue #7534 has been updated by hasari (Hiro Asari). This was reported by Ian Leitch. https://twitter.com/ileitch/status/277234777118093314 (https://gist.github.com/4236706) ---------------------------------------- Bug #7534: /(?i:[\W])/ and /(?i:[\w])/ both match "s" https://bugs.ruby-lang.org/issues/7534#change-34532 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/