Using PHP's regex implementation (preeg_match(), etc)
I would like to match a larger string, and replace just a small portion of it.
For example, I have a multi-line string I want to match multiple times from an HTML document:
And in each occurrence, I wish to remove:Code:<span class="onDate"> <a rel="bookmark" title="4:11 am" href="/excuse-dust/"> <span class="bl_sep">|</span> </span>
But I need to match the larger match first, because the piece I need to remove will likely occur elsewhere as well.Code:<span class="bl_sep">|</span>