This is my string:
<u>Text</u><br />More <strike>Text</strike><br />Even More Text<br /><br />
So my regex as of right now is as follows:
$regex = "/<u>([\w]+[^<]*)<\/u><br \/>([\w]+[^<]*)<br \/>[\w]+:[\s]*([\w]+[^<]*)<br \/><br \/>/";
I basically want to extract 'Text', 'More <strike>Text</strike>', and 'Even More Text'.
The problem is, right now it won't match because the <strike> throws it off. I am looking for a way to say perhaps this:
<br \/>([\w]+[^(<br \/>)]*)<br \/>
As in, Find a bunch of words that aren't '<br />', followed by <br />. I hope that is clear enough.


Sign In
Create Account


Back to top









