Bug #7534

/(?i:[\W])/ and /(?i:[\w])/ both match "s"

Added by Hiro Asari almost 3 years ago. Updated almost 3 years ago.

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.

See https://gist.github.com/4238886

Related issues

Duplicates Ruby trunk - Bug #7533: Oniguruma hates the letter 's' :( Closed 12/08/2012
Duplicates Ruby trunk - Bug #4044: Regex matching errors when using \W character class and /i option Closed 11/11/2010


#2 Updated by Charlie Somerville almost 3 years ago

Related to #7533

#3 Updated by Heesob Park almost 3 years ago

As far as I can remember, this issue is two years old.
Refer to #4044

#4 Updated by Hiro Asari almost 3 years ago

Indeed, this is a duplicate of #4044. My apologies. Please close this one. Thank you.

#5 Updated by Vit Ondruch almost 3 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF