Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 03-30-2023, 06:32 PM   #1
CrispyBacon
Junior Member
CrispyBacon began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Mar 2016
Device: Kindle Fire 7"
Find and replace only for headers (Edited)

Like the title says is there a way to find and replace words only in the headers.

Edit: For example I want to find and replace words in <h1> only

Or to change a Chapter name all at once.

I want to change all the - to :
I know I can use this <p>\s*Chapter (\d+) : (.*?)\s* </p> to change it
Is there an expression I can use in the replace box for increasing intervals?

Ex.
Chapter 1- Name
Chapter 2- Name
Chapter 3- Name

to

Chapter 1: Name
Chapter 2: Name
Chapter 3: Name

Last edited by CrispyBacon; 04-02-2023 at 09:27 AM. Reason: More information and question
CrispyBacon is offline   Reply With Quote
Old 03-30-2023, 08:26 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: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
Use regular expressions is the short answer. The Sigil users guide has more info. Also if yu can show us an actual example (with html code), people here may help you create it.
KevinH is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Find/Replace ? Otter Calibre 2 10-08-2012 08:48 PM
Find Replace unrulyguides Sigil 5 02-17-2012 08:38 PM
Find/Replace Won't Find Rand Brittain Sigil 7 09-24-2011 04:35 AM
Find / replace bremler Sigil 6 12-17-2010 03:26 PM
Using Find/Replace with BD Otter Sony Reader 7 02-28-2009 01:49 PM


All times are GMT -4. The time now is 06:32 PM.


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