method

gsub

Importance_1
Ruby latest stable (v1_8_7_72) - 0 notes - Class: Kernel
gsub(...) public

Equivalent to $_.gsub..., except that $_ receives the modified result.

   $_ = "quick brown fox"
   gsub /[aeiou]/, '*'   #=> "q**ck br*wn f*x"
   $_                    #=> "q**ck br*wn f*x"
Show source
Register or log in to add new notes.