Quote:
Originally Posted by DiapDealer
My bad. I didn't notice the space was inside the optional grouping. Part of the reason I don't like to use a lot of extraneous grouping in my regex.
If you're worried about matching the wrong tags (like <image for <i), just make sure there's a word break after the element name.
Or if you're in calibre's editor, even the end-of-word match:
|

That works too.
Po-tay-to po-tah-to.
Doesn't confuse me, I got used to doing it this way (seems in my subjective opinion to make more sense), etc. Never really fell in love with word boundaries.