View Single Post
Old 09-14-2022, 02:56 AM   #53
mobilis
drowned in old books
mobilis is on a distinguished road
 
mobilis's Avatar
 
Posts: 39
Karma: 62
Join Date: May 2012
Location: United States
Device: Kindle Paperwhite
Quote:
Originally Posted by theducks View Post
REGEX is your buddy ( there are a few REGEX tutorials here are MR. That is how I learned. BTW Calibre use PCRE flavor of REGEX)

Code:
<p class="calibre1">\d+\/\d+</p>
\d+ says 1 or more digits together match
\/ is just an escaped / (might not be needed, but dos not hurt)
'escaped' items remove their special meaning and treat them as they LOOK
I left the rest to only be an 'exact match' to be a trigger.

eg <p class="calibre1">The cup was 3/4 full.</p> would not match.
THANK YOU!!
mobilis is offline   Reply With Quote