summaryrefslogtreecommitdiff
path: root/doc/regexp.rdoc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/regexp.rdoc')
-rw-r--r--doc/regexp.rdoc4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/regexp.rdoc b/doc/regexp.rdoc
index 59f1c45651..26779acb1a 100644
--- a/doc/regexp.rdoc
+++ b/doc/regexp.rdoc
@@ -121,7 +121,9 @@ The following metacharacters also behave like character classes:
* <tt>/./</tt> - Any character except a newline.
* <tt>/./m</tt> - Any character (the +m+ modifier enables multiline mode)
* <tt>/\w/</tt> - A word character (<tt>[a-zA-Z0-9_]</tt>)
-* <tt>/\W/</tt> - A non-word character (<tt>[^a-zA-Z0-9_]</tt>)
+* <tt>/\W/</tt> - A non-word character (<tt>[^a-zA-Z0-9_]</tt>).
+ Please take a look at {Bug #4044}[https://bugs.ruby-lang.org/issues/4044] if
+ using <tt>/\W/</tt> with the <tt>/i</tt> modifier.
* <tt>/\d/</tt> - A digit character (<tt>[0-9]</tt>)
* <tt>/\D/</tt> - A non-digit character (<tt>[^0-9]</tt>)
* <tt>/\h/</tt> - A hexdigit character (<tt>[0-9a-fA-F]</tt>)