I'm debranding a micro-site to use as a portfolio piece. It's built with static html, I need to replace the contents of every non-script tag with lipsum or even scrambled text - but it has to be the same number of characters as the current text to keep the formatting nice. Furthermore, I really would rather do this with GUI grep editor rather than writing a script because there may be a few tags I need to keep the contents of.
I used the regex \>([^$]+?)\<
to find them (all the scripts start with $ so it skips the script tag) but I can't find any way to count the number of characters matched and replace with a corresponding number of lipsum or random characters.
Thanks for any help!