Implement =~ like in Ruby
Also yield match in String#replace with block