View Single Post
Old 07-21-2023, 08:15 PM   #8685
w4tchdoge
Enthusiast
w4tchdoge began at the beginning.
 
w4tchdoge's Avatar
 
Posts: 29
Karma: 10
Join Date: Jul 2023
Device: Calibre
Quote:
Originally Posted by culytera View Post
You forgot to retrieve the group that matched your regex. It should be:
Code:
 web_fic_tag=>^(.*)=>Web Fiction \1
Replacing
Code:
web_fic_tag=>^(.*)=>Web Fiction
with
Code:
web_fic_tag=>^(.*)=>Web Fiction \1
results in the following, which is not the result I am looking for.

Regarding the code in my initial message.
Said code comes from me not knowing how to define a tag(?)/variable(?) which is always a fixed text (in this case it would be defining web_fic_tag to always be "Web Fiction").
Hence I have copied what I have seen others do with replace_metadata and assigned the status of whatever work I am using FFF on to web_fic_tag. But I don't actually want web_fic_tag to be the status of the work, I want it to always be "Web Fiction". Hence the regex I have used replaces the whatever the retrieved status was with "Web Fiction".
I understand that this is a roundabout way of going about this but it is the only one I could think of.

If anyone has any more suggestions I will be more than happy to test them and see if it works.
w4tchdoge is offline   Reply With Quote