Quote:
Originally Posted by culytera
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.