Skip to content

Instantly share code, notes, and snippets.

@ozantunca
Last active September 6, 2020 10:12
Show Gist options
  • Save ozantunca/3e056961c85d6a69bea99a08ce521db0 to your computer and use it in GitHub Desktop.
Save ozantunca/3e056961c85d6a69bea99a08ce521db0 to your computer and use it in GitHub Desktop.
function removeFromText(text, strToBeRemoved) {
return text.replace(new RegExp(strToBeRemoved, 'g'), '');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment