String - kapilpipaliya/ruby_notes GitHub Wiki

.sub only find and replace the first occurrence
.gsub find and replace all occurrence
in ruby regular expressions are written in between a pair of forward slashes (/). example: 'RubyMonk'.gsub(/[aeiou]/,'1')\