View Single Post
Old 01-16-2023, 10:48 AM   #7951
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,170
Karma: 77304081
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
The replace_metadata for this fic is giving me a bit of hassle.

Half-Life (Video Games), Game: Black Mesa (Half-Life) - Fandom

Code:
replace_metadata:

 category=> \([0-9]+\)| \(Video Game\)| \(Video Games\)| (|- Fandom\(Movies\)|\(Movie [0-9]+\)| \(Comics\)| \(TV\))$=>
 category=>(Half-Life: Decay|Hunt Down The Freeman|Half-Life 2|Half-Life Opposing Force|Half-Life: Alyx|Half Life|Game: Black Mesa \(Half-Life\))=>Half-Life
gives me: Crossover, Half-Life, Half-Life - Fandom

The "Black Mesa (Half-Life)" bit got replaced as expected, but why didn't " - Fandom" get removed by the first line?

Last edited by ownedbycats; 01-16-2023 at 10:51 AM.
ownedbycats is offline   Reply With Quote