Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var find = "A"; // change this to what you want to find
- var replace = "Z"; // change this to what you want to replace
- var regex = new RegExp("\s" + find + "\s", "g"); // don't change this
- document.body.innerHTML = document.body.innerHTML.replace(regex, " " + replace + " ");
Advertisement
Add Comment
Please, Sign In to add comment