Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 07:20 AM   #1
rjwse@aol.com
Addict
rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.
 
rjwse@aol.com's Avatar
 
Posts: 347
Karma: 2581190
Join Date: Dec 2013
Location: LaVernia, Texas
Device: kindle epub readers on android
regex class search

Sometimes the simplest things really give me a kick. I use classes almost exclusively instead of styles. My CSS is a long list of classes in the main consisting of the first letter of each word in every which kind of style definition. In this way I can quickly hop and chop from this to that. I got stumped on how to use calibre's 'find' for any kind of class name consisting of one or more letters. It got lost due to being surrounded by spaces, other classes, or quotation marks. So I asked AI and it gave me: class="[^"]*X[^"]*"
I remove X and put in whatever I am looking for, then make sure the search says 'regex' instead of 'fuzzy.' I also put it in 'saved searches' in case I forget.
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2026-03-25 06-07-36.png
Views:	19
Size:	613.5 KB
ID:	222044  
rjwse@aol.com is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Regex replace p-class in entire book AlwaysNew Editor 17 07-10-2020 09:11 AM
Regex for replacing class AlwaysNew Editor 5 06-22-2020 08:55 AM
Regex in search problems (NOT Search&Replace; the search bar) lairdb Calibre 3 03-15-2017 07:10 PM
Regex Search doesn't search all files in Edit Book GregTheGrate Editor 8 11-08-2016 12:47 AM
Help with regex POSIX class search bfollowell Sigil 7 05-21-2011 10:55 AM


All times are GMT -4. The time now is 12:35 AM.


MobileRead.com is a privately owned, operated and funded community.