/(?i:[\W])/ and /(?i:[\w])/ both match "s"
|ruby -v:||ruby 2.0.0dev (2012-12-08 trunk 38268) [x86_64-darwin12.2.1]||Backport:|
If you drop any of the 3 conditions - case-insensitivity, character class, or "s" - this bug does not happen.
#1 Updated by Hiro Asari over 2 years ago
This was reported by Ian Leitch. https://twitter.com/ileitch/status/277234777118093314 (https://gist.github.com/4236706)