Quote:
Originally Posted by firefoxxy
Everything works fine for me. Thank you so much for looking into this and the time you have taken for helping me out!
|
Glad it's working for you.
I designed expecting that there would be 'more'somes, but be warned that weird things may happen if you ever run across a story that uses both / and & in the same ship entry. I've never seen one 'in the wild', but AO3 did let me enter it in a test story.
As for family name first names, you can another regexp before the 'first name only' one that instead does 'last name only' for certain family names:
Code:
## second name only for certain family-name-first names:
ships_CHARS=>^(Uchiha|Uzumaki|Haruno|Hyuuga|Hatake|Namikaze) *([^ ]+)$=>\2
## first names only:
ships_CHARS=>^([^ ]+).*$=>\1
Note that it won't work if there's more than two names, like "Hyuuga Hinata (Naruto)/Uzumaki Naruto (Naruto)" won't work.