View Single Post
Old 08-14-2023, 11:57 AM   #19
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,139
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
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>
theducks is online now   Reply With Quote