Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 07-26-2025, 09:01 PM   #796
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,070
Karma: 6361556
Join Date: Nov 2009
Device: many
You can change the amount of context provided, but if you walk through things one by one anyway, you can easily pick out which instances to skip, and even edit the text directly to handle all cases you want. So I guess I do not understand the problem you are trying to solve if you already plan to walk things manually.
KevinH is offline   Reply With Quote
Old 07-26-2025, 09:13 PM   #797
ElMiko
Fanatic
ElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileRead
 
ElMiko's Avatar
 
Posts: 502
Karma: 65460
Join Date: Jun 2011
Device: Kindle
Quote:
Originally Posted by KevinH View Post
You can change the amount of context provided, but if you walk through things one by one anyway, you can easily pick out which instances to skip, and even edit the text directly to handle all cases you want. So I guess I do not understand the problem you are trying to solve if you already plan to walk things manually.
The issue is the replacement value. I'm not trying to manually type in a different replacement value for each match. I just want to insert an apostrophe, be it in a blank space, or before an "s", or a "t", or an "ll", or am "re".

Last edited by ElMiko; 07-26-2025 at 09:22 PM.
ElMiko is offline   Reply With Quote
Old 10-25-2025, 09:20 PM   #798
Torgo
Junior Member
Torgo began at the beginning.
 
Torgo's Avatar
 
Posts: 2
Karma: 10
Join Date: Sep 2025
Device: iPad
I'm using Sigil 2.6.0 and trying to match attributes like: epub:type="frontmatter titlepage" (where the value is variable.)

I expected
Code:
epub:type="[^"]*"
to match it, but it does not.

From what I can tell from the user guide, skimming this thread, and trying an online expression tester, it should work. What am I missing?
Torgo is offline   Reply With Quote
Old 10-25-2025, 09:53 PM   #799
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,685
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Try... epub:type=".*?"

Do you need to capture and reuse the value? If yes, surround with brackets (.*?)
Karellen is online now   Reply With Quote
Old 10-26-2025, 12:16 AM   #800
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,763
Karma: 24088559
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Torgo View Post
I expected
Code:
epub:type="[^"]*"
to match it, but it does not.
Since the regex definitely works, you might have forgotten to select Regex mode in Sigil or there are one or more spaces before and after the equal sign.
Try
Code:
epub:type\s*=\s*"[^"]*"
Doitsu is offline   Reply With Quote
Old 10-26-2025, 12:25 AM   #801
Torgo
Junior Member
Torgo began at the beginning.
 
Torgo's Avatar
 
Posts: 2
Karma: 10
Join Date: Sep 2025
Device: iPad
Quote:
Originally Posted by Doitsu View Post
Since the regex definitely works, you might have forgotten to select Regex mode in Sigil
That was it. Thanks!

I was using regex earlier, and I'm not sure how I switched that off.
Torgo is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Examples of Subgroups emonti8384 Lounge 32 02-26-2011 06:00 PM
Accessories Pen examples Gunnerp245 enTourage Archive 15 02-21-2011 03:23 PM
Stylesheet examples? Skitzman69 Sigil 15 09-24-2010 08:24 PM
Examples kafkaesque1978 iRiver Story 1 07-26-2010 03:49 PM
Looking for examples of typos in eBooks Tonycole General Discussions 1 05-05-2010 04:23 AM


All times are GMT -4. The time now is 04:05 AM.


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