Related to this: I am trying to remove "Crossover" from fanfics that technically aren't crossovers:
Code:
program:
f = $#fanficcat;
if
contains(
f, '^Crossover, Mass Effect Trilogy, Mass Effect: Andromeda$', '1', ''
)
then
'Mass Effect Trilogy, Mass Effect: Andromeda'
elif
contains(
f, '^Crossover, Half-Life, Portal$', '1', ''
)
then 'Half-Life, Portal'
else
$#fanficcat;
fi
However, this fails if the tags aren't in that exact order. Since it appears sorted in book details it's hard to tell. Is there a better way to do this?