class RuboCop::Cop::Style::PerlBackrefs

Looks for uses of Perl-style regexp match backreferences and their English versions like $1, $2, $&, &+, $MATCH, $PREMATCH, etc.

@example

# bad
puts $1

# good
puts Regexp.last_match(1)