View Single Post
Old 10-07-2024, 04:04 PM   #31
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 479
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Quote:
Originally Posted by Turtle91 View Post
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.
foosion is offline   Reply With Quote