View Single Post
Old 11-09-2022, 09:29 AM   #7707
veviara
Junior Member
veviara began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Dec 2021
Device: Kobo Libra 2
Is there any way to use an already captured group in the conditional for replace_metadata? Or a workaround that I'm missing?

What I'm looking for is something that would allow me to capture a group and then modify it if that same group is also present in another tag e.g.:

Code:
characters=>([A-Za-z ]+)=>dark \1&&customtags=~dark \1
The problem with that ^^ approach is that the second reference to the capturing group is invalid, and while that does make sense it has also given me quite a few premature grey hairs. My current workaround is to include both characters and customtags in the same column on import, which kinda works, but doesn't solve all problems and comes with a different nightmare (cleanup). It feels like a problem which already has a solution but I cannot for the life of me find it?

(i already tried to post this once but it looks like something went wrong so im trying again. if it did work and there are two messages, well, thats why)
veviara is offline   Reply With Quote