Hi Guys, I have a block of code :
`<ol start="3"> <li><strong> Who can take part?</strong></li> </ol> <ul> <li>Selected customers. Including (#amount=45GBP#). </li> </ul> <p> </p> <ol start="4"> <li><strong> What else do I need to know? </strong></li> <ol start="5"> <li><strong> Other boring but essential stuff:</strong></li> </ol>
What I need to do is replace all “<ol +” instances so all the <ol start=*'s
But i need to keep the first instance of (the first and last ones)
I was trying to use regex to find the last one with this: (</ol)(?!.*\1) but i still get 3 matches.
Could anyone provide any input/thoughts on how to go about removing all instances except the first and last one in the string?