Reimplement =~ to use Regex.match? or String.contains?
Use =~ with strings where it makes sense
Merge pull request #1199 from alco/1148-match-tilde-op

Reimplement =~ to use Regex.match? or String.contains?