Thread: epub editing
View Single Post
Old 01-11-2022, 08:05 AM   #18
lonly
Member
lonly began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Nov 2012
Location: Bellow the Sky
Device: Laptop
Quote:
Originally Posted by lomkiri View Post
You can put the cursor on the line you want to transform and hit Ctrl-3

Or you can make a search:
<p>(Chapter\s[^<]+)</p>
replace:
<h3>\1</h3>

If you choose "replace all", check the result at the end.
All paragraphes begining with <p>Chapter will be targeted. If that's a problem, it is possible to refine and target the latter but with a colon inside the text:
<p>(Chapter\s[^:]+:[^<]+)</p>


As advised, you probably want to learn the basis of the regexes, then you'll be able to create your own searches, it's very usefull. This one, for example, is a very basic one with no special difficulties.
Thank you for this
is that possible to add some css code related to this and all these lines will be in h1 tag
if its possible then what code i have to add in css file ?
lonly is offline   Reply With Quote