View Single Post
Old 08-14-2023, 12:06 PM   #20
Liudprand
Zealot
Liudprand began at the beginning.
 
Posts: 133
Karma: 10
Join Date: Nov 2021
Device: Kobo Libra 2
Quote:
Originally Posted by theducks View Post
If you must

Polish you REGEX foo and you could Search for:
"See Chapter 8, note 37"
to a Link (more work if those were not formatted consistently)
Be wary of doubles (or more) and do those first

Code:
See (Chapter \d+), note (\d+)
I included the word Chapter so it would not do any other "See..."

Note: Name the target files EXACTLY as shown (Chapter 8.HTML),
<a>href="Chapter 6.html#37</a>

Code:
<a>href="\1.html#\2</a>
Number the matching note Anchor as shown (no REGEX, because I have no clue as to what the notes code looks like)
<a>#37</a>
Thanks very much for this. But I've no idea what "REGEX" means. Not your problem - clearly, I'll need to mug up on all of this stuff in order to move forward. It would be good if one of these forums was a sort of "kindergarten", where absolute, or near-absolute, beginners could share their very first steps... Until then, I shall depart for YouTube!
Liudprand is offline   Reply With Quote