View Single Post
Old 05-06-2023, 05:59 AM   #1
Dr.Strangelove
Member
Dr.Strangelove began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Mar 2019
Location: Hamburg/Germany
Device: Kindle Paperwhite 7. Generation
need help to create a regex

I have an epub which has tags like this in html
Code:
 <body id="CCNA0-13649bfe67614ed3be03405aa6e1ffaf" class="calibre">
and this in toc.ncx
Code:
<content src="text/part0011.html#AFM60-13649bfe67614ed3be03405aa6e1ffaf"/>
For the first line, I need to replace it with
Code:
<body class="calibre">
whatever the id is.

For the second my idea is to replace
Code:
html#AFM60-13649bfe67614ed3be03405aa6e1ffaf"
against
Code:
html"
- again whatever the long id is.Could somebody help me with the regex? I am not able to find a way using wildcards for the id
Dr.Strangelove is offline   Reply With Quote