implement CRuby like gsub/scan/sub/split
Merge pull request #10 from take-cheeze/sub_gsub

Implement CRuby like gsub/scan/sub/split.