Subject: | RegularExpressions::ProhibitEnumeratedClasses false positive on [A-Za-z_] |
The policy RegularExpressions::ProhibitEnumeratedClasses reports a false
match against the pattern "[A-Za-z_]", suggesting the programmer use
"\w" instead. However, these are not the same pattern-- "\w" is
equivalent to "[A-Za-z0-9_]". I used the pattern "[A-Za-z_]" instead of
"\w" specifically to avoid digits in the matched string. This is
incorrect in both the code and the documentation.
--
Randy J. Ray
rjray@blackperl.com
randy.j.ray@gmail.com