View Single Post
Old 11-03-2023, 08:32 PM   #86
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,024
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by shinykari View Post
I am trying to use "replace_metadata" to standardize fandom tags, and have come across an annoyance. Older fic is often tagged "Hockey RPF," but a few years ago, AO3 changed the official name of the fandom to "Men's Hockey RPF," which is what I prefer to use in my library. I have the following in my FFF personal.ini:

Code:
replace_metadata:
 category,genre=>Hockey RPF=>Men's Hockey RPF
This works great for the older fics, but since the new fics also have "Hockey RPF" as part of their tag, it changes them to "Men's Men's Hockey RPF."

Is there a way to only match the full tag, so that the shorter tag is changed but the longer (already correct) tag stays the same?
Line anchors.

Code:
 category=>^Hockey RPF$=>Men's Hockey RPF
ownedbycats is offline   Reply With Quote