Quote:
Originally Posted by Turtle91
That’s what I do most of the time (regex)… BUT … you need to be very careful of nested tags especially if you are searching for <span>s because that regex will pickup the first end tag not necessarily the correct one.
As Diap mentioned, his plugin actually parses the html to avoid that issue.
|
I'm not sure which post you're responding to. Assume it's recent:
I can't recall ever seeing a nested h# tag and Jon's example wasn't nested.
I'm not sure it's even possible to do nested properly with standard regex. I started a post asking about that and so far I've gotten the expected lack of response.
Anyway, agreed.