nathan15

Untitled

Dec 26th, 2013
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var find = "A"; // change this to what you want to find
  2.  
  3. var replace = "Z"; // change this to what you want to replace
  4.  
  5. var regex = new RegExp("\s" + find + "\s", "g"); // don't change this
  6.  
  7. document.body.innerHTML = document.body.innerHTML.replace(regex, " " + replace + " ");
Advertisement
Add Comment
Please, Sign In to add comment