I've got a text. I want to find out if a certain part of that text is repeated three or more times and replace that by only two repetitions.
For example, in the HTML code I'm looking at, there are 3 or more <br />
in a row and I want to change that to just 2 <br />
in a row.
How can I do that?