I'm Trying to get the respective StartSession with your EndSession
the string (https://regex101.com/r/kP2bQ4/3):
<span class="QuellonStartSession">FirstSession</span><span class="QuellonStartSession">SecondSession</span>SomeContent<span class="QuellonEndSession">EndSecondSession</span>SomeContent...<span class="QuellonEndSession">EndFirstSession</span> ....Content...<span class="QuellonStartSession">SomeSession</span>Content<span class="QuellonEndSession">EndSomeSession</span>
Above i have some QuellonStartSession
and QuellonEndSession
, the problem occurs when i have some StartSession
which is already open, i need to take the respective (start - end). In the example the FirstSession
needs to get EndFirstSession
and his content