Answers for "find and replace where word in string in rails"

-1

replace strring by another string ruby

myString = "Welcome to JavaScript!"

myString["JavaScript"]= "Ruby"

puts myString
=> "Welcome to Ruby!"
Posted by: Guest on June-04-2020

Code answers related to "find and replace where word in string in rails"

Browse Popular Code Answers by Language