I want to check a string and if it has no <br /> starting then I don’t wanna do any thing
for example mysqtinr = 23435-acs
as you can see no <br /> starting
but if the string has the following then I wanna parse it out
myString = <br /> some text goes here <b> Some other things </b>: just more test <b> http://website/index.php </b> on line <b> 43 </b> <br /> 1234-acd
I want to parse out everything after the last <br />
how can I do that
thanks
Explanation:
So we first try to match
<br/>or<br />etc. If that fails, the match fails. If not, then we capture every following character until the end of the string unless it’s possible to match another<br/>along the way. This ensures that we are indeed matching from the last<br/>onwards. The result will be in backreference nr. 1 (which may be empty if there is nothing after the last<br/>).