Skip to content

Instantly share code, notes, and snippets.

@ilyasozkurt
Created February 15, 2023 11:29
Show Gist options
  • Save ilyasozkurt/d6cf2dbc2601783b0c0ca817c08afa6f to your computer and use it in GitHub Desktop.
Save ilyasozkurt/d6cf2dbc2601783b0c0ca817c08afa6f to your computer and use it in GitHub Desktop.
text = "apple banana cherry"
new_text = text.gsub(/a/, "b")
puts new_text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment