View Single Post
Old 11-16-2022, 12:06 PM   #449
Magic815
Enthusiast
Magic815 has learned how to buy an e-book online
 
Posts: 38
Karma: 98
Join Date: May 2022
Device: Kindle Paperwhite 11th Gen (2021)
Quote:
Originally Posted by ownedbycats View Post
What if the user could input a custom regex?
I was able to get some regex help, and someone came up with the following, which seems to work nicely with a lot of the corner cases I've seen in my eBooks.

https://regex101.com/r/UomIXo/2

Thoughts?

Edit: Although, I just realized that above regex uses the PCRE2 flavor. But am I understanding correctly that Calibre uses this? https://bitbucket.org/mrabarnett/mrab-regex/src/hg/ (Per this page: https://manual.calibre-ebook.com/regexp.html)

Last edited by Magic815; 11-16-2022 at 12:13 PM.
Magic815 is offline   Reply With Quote