View Single Post
Old 08-02-2023, 12:37 AM   #8769
culytera
Zealot
culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.
 
Posts: 131
Karma: 295674
Join Date: Jul 2021
Device: iPhone
Quote:
Originally Posted by Ghostcat View Post
I am trying to add a new item to a list. So that if I have a (ao3) ship of the form ['Hermione Granger/Harry Potter/Ginny Weasley'] I end up with ['Harry/Hermione.Ginny', 'Triad']

Code:
ships=>(.+) .+\/Harry Potter\/(.+) .+=>Harry/\1.\2
correctly results in ['Harry/Hermione.Ginny']. However, if I add \,Triad on the end (as specified on the "Replace Metadata" web page. I don't get the ship tag or the "Triad" tag.

IE
Code:
ships=>(.+) .+\/Harry Potter\/(.+) .+=>Harry/\1.\2\,Triad
results in the empty list.

I know I am missing something obvious but I blowed I can see what it is.
It seems you just need to remove the backslash before ,
Code:
ships,ships_all=>(.+) .+\/Harry Potter\/(.+) .+=>Harry/\1.\2, Triad
- No backslash
- With backslash
culytera is offline   Reply With Quote