Issue #7534 has been reported by hasari (Hiro Asari).

----------------------------------------
Bug #7534: /(?i:[\W])/ and /(?i:[\w])/ both match "s"
https://bugs.ruby-lang.org/issues/7534

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/