Use Regexp#=~ instead of String#=~

Because "match" opration is provided by Regexp not String.