I have a folder of .xml files that I need to run a find replace script against the contents, that will find a string of characters based on, if the same character is repeated in a string 4 times or more.
if the string looks like this RRRR then replace with &&&&
if the string looks like this RRRRRRRR then replace with &&&&&&&&
if the string looked like this RRR then skip
How can this be done?
Many thanks in advance