I have this text:
<span id="3">
HELLO THERE
<span id="5">
Other stuff
<span id="6">
Other Stuff
<span id="7">
Other sutff
I need to grab just the <span...>
elements after the HELLO THERE
text. So in the above example, all the spans except for the one with id=3.
So I tried (<span.+?>)+
which grabs all the spans. Next, I tried HELLO THERE.+?(<span.+?>)+
, but that only grabs the first relevant one. So my question is, what is the right regex to use here?