I could use some advice on how best to solve my problem here…
I have a tiddler for each book of the bible. On other tiddlers, if it’s referencing a book, I’ll just link to the book tiddler.
For example, I have a tiddler called BookOfRomans. I have another tiddler that references BookOfRomans like such:
"[[BookOfRomans]] 6:8 says “If we have died with Christ, so shall we also live with him”
It can also be said: If we are to live with him, then we must die with him. First death-then life.
But when? Indeed, when the first has happened, because the coming of the life-giving [[HolySpirit]] is the same as the coming of the “Comforter” whom Christ has promised to the disciples. When does the Comforter come? He does not come until all the dreadful things that Christ has prophesied about his life have happened, and likewise the appalling things he has predicted regarding the lives of the disciples-then comes the Comforter. Whether he comes that very moment is not said; it merely says that it will happen when the first has happened, when this dying has occurred. So it is with the coming of the life-giving Spirit."
This is great as I can go to the BookOfRomans tiddler and can view all the tiddlers that reference it. The issue, however, is I don’t have an easy way of seeing specific chapters tiddlers are referencing. I’d love to be able to go to the BookOfRomans tiddler and see a list of chapters that tiddlers reference to. For instance,
- 1:3
– Tiddler A - 6:8
– Tiddler B
Something like that. And right now, my thought is to have some form of regex used to accomplish this, as every reference follows the specific format of [[BookName]] Chapter:Verse, so somehow I could loop through each tiddler that links to the book and then find the digits that follow immediately after the literal link.
Open to suggestions on alternatives and/or how I could accomplish the regex extraction.