Skip to content

Instantly share code, notes, and snippets.

@ilyasozkurt
Created February 15, 2023 11:28
Show Gist options
  • Save ilyasozkurt/2686b90682637a44292894103cb2d91d to your computer and use it in GitHub Desktop.
Save ilyasozkurt/2686b90682637a44292894103cb2d91d to your computer and use it in GitHub Desktop.
var text = "apple banana cherry";
var new_text = text.replace(/[ae]/g, "b");
console.log(new_text);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment