Thread: Regex examples
View Single Post
Old 08-19-2022, 11:43 AM   #730
CubGeek
Connoisseur
CubGeek began at the beginning.
 
Posts: 52
Karma: 10
Join Date: Sep 2021
Location: Upstate NY, USA
Device: iPad Pro, Kindle basic
Quote:
Originally Posted by Tex2002ans View Post
The easiest way to do it is to use DiapDealer's fantastic "TagMechanic" plugin.

I explained how to install Sigil plugins in this 2021 post.

And I gave step-by-step instructions on how to use TagMechanic here:
Cheers, that'll help significantly. Luckily, the few things I'm crafting are small enough, and I'm doing them slow enough, that there isn't much "spaghettification" of the code, or the whole <span>ception of nested <span>s thing that I've seen when I peeked inside a couple of my purchased or calibre-converted books.

Quote:
You see the parentheses you wrapped around your stuff? That's called a "Capture Group".
Yup! Note my edit above where I learned about Capture Groups and backreferences and... However, I like your explanation better. Much more user friendly.


Quote:
Side Note #2: If you want some more Regex tricks, I just wrote a post a few months ago here:

which linked to some of my other posts over the years. I break down + color-coordinate many of the ones I use.
bookmarked!

Quote:
And I don't know if you caught this topic:

where I explained differences between <i> + <em> even further.
Oh, I did. *twitch* I'm sure I was mumbling about em's and i's and strong's and b's (oh my!) in my sleep to the annoyance of my cats
CubGeek is offline   Reply With Quote