Streaming live at 10am (PST)

Find / Replace TEXT content on page

I’m looking for a script with simple Find “ABC” and REPLACE with “CBA”.

Usecase:

Dozens of Blog Pages. Lots of words. Just need to replace all instances of text containing “ABC.ABC” with “CBA.CBA”. And simply put code in header.

I’m unable to find any good resources that can accomplish this.

Yay found it works:

1 Like

Yeah thats a good solution you found on codepen.io, javascript regular expressions will help you single out and replace data as long as it matches your parameters. Its always fun to mess around with Regex - its a word search generator!

I also like to use this to test out regex https://regexr.com/