|
|
#1 |
|
Junior Member
![]() 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 10:27 AM. Reason: More information and question |
|
|
|
|
|
#2 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,072
Karma: 6361556
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.
|
|
|
|
| Advert | |
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Find/Replace ? | Otter | Calibre | 2 | 10-08-2012 09:48 PM |
| Find Replace | unrulyguides | Sigil | 5 | 02-17-2012 09:38 PM |
| Find/Replace Won't Find | Rand Brittain | Sigil | 7 | 09-24-2011 05:35 AM |
| Find / replace | bremler | Sigil | 6 | 12-17-2010 04:26 PM |
| Using Find/Replace with BD | Otter | Sony Reader | 7 | 02-28-2009 02:49 PM |