View Single Post
Old 08-29-2024, 07:04 PM   #2
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: 8,806
Karma: 6000000
Join Date: Nov 2009
Device: many
What you are looking for is called Regular Expression Find and Replace (aka regex).
This mode enable placeholders for specific character classes. Digits are represented by \d,
and a following + sign means 1 or more.

So set Sigil's Find and Replace Mode to Regex.

Try using something like the following in the Find Field:

DSF Chapter \d+

Before making any big Find Replace changes, I would make a Checkpoint just in case a big find and replace does not work the way you expect.

Sigil also has a DryRun Find and Replace command that will show you all the Find and Replaces done in context but not actually perform them, so you can test your regex expressions first.

Last edited by KevinH; 08-29-2024 at 07:10 PM.
KevinH is online now   Reply With Quote