View Single Post
Old 11-23-2015, 01:36 PM   #755
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,045
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by edeniz View Post
...
I thought I could fix it by simply adding to replace_metadata:
Spoiler:
Code:
 characters=>John=>John Sheppard&&category=>Stargate Atlantis
 characters=>Rodney=>Rodney McKay&&category=>Stargate Atlantis
 ships=>John/Rodney=>John Sheppard/Rodney McKay&&category=>Stargate Atlantis
 ships=>John/Rodney=>John Sheppard/Rodney McKay&&category=>Stargate: Atlantis

...
'John' and 'Rodney match and replace the first name parts of 'John Sheppard' and 'Rodney McKay'--which is functioning as designed.

Instead try:
Code:
 characters=>^John$=>John Sheppard&&category=>Stargate Atlantis
 characters=>^Rodney$=>Rodney McKay&&category=>Stargate Atlantis
^ matches beginning of a string and $ matches the end.
JimmXinu is offline   Reply With Quote