View Single Post
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:	20
Size:	613.5 KB
ID:	222044  
rjwse@aol.com is offline   Reply With Quote