Please help me before I beat my brains out !!!!!
I need to able to use a regex within preg_replace to find a specified span tag and replace EVERYTHING between the tag and the </span> (the opening span can contain a number of params, the search term will always be the value of the id), there will be no embedded spans and even if there were I don't care what they are, I just need to replace them 🙂 I've been playing around with regexs for hours without any success so if anyone can suggest something I'd be really grateful!
example:
<span id="left1" style="color:red" otherparam="blah">I need to replace this text</span>
or
<span id="right1">I might also need to replace this too</span>
Please help before my brain dribbles out of my ear ...
Crussell