View Single Post
Old 10-10-2016, 02:47 PM   #1534
ILB
Groupie
ILB can illuminate an eclipseILB can illuminate an eclipseILB can illuminate an eclipseILB can illuminate an eclipseILB can illuminate an eclipseILB can illuminate an eclipseILB can illuminate an eclipseILB can illuminate an eclipseILB can illuminate an eclipseILB can illuminate an eclipseILB can illuminate an eclipse
 
ILB's Avatar
 
Posts: 173
Karma: 8098
Join Date: Jun 2012
Location: Germany
Device: Kindle Voyage, Kindle Oasis
Quote:
Originally Posted by JimmXinu View Post
Code:
 category=>^Sherlock$=>Sherlock Holmes(All Media Types)&&category=>^Sherlock$
You can't use the same metadata key word (category) in both the replacement part (before &&) and the conditional part (after &&) of a replace line. Also, it isn't needed in this case. The replacement part does the same thing the conditional would.
Oh, I copied it from my "characters" line and only changed it to category. And after it worked I did not think further...

Quote:
Originally Posted by JimmXinu View Post

I think you want something more like:
Code:
 category=>^(.*Sherlock.*)$=>Sherlock Holmes(All Media Types)\,\1
That says: "Any category that contains 'Sherlock' with anything before and/or anything after it, change to two entries, 'Sherlock Holmes(All Media Types)' and whatever it was before (the '\1').
That worked.

Quote:
Originally Posted by JimmXinu View Post


I don't use hierarchical tags, but from what I understand, you could do this:
Code:
 category=>^(.*Sherlock.*)$=>Sherlock Holmes(All Media Types).\1
Since the multiple category works - I donīt think I will use/need hierarchical tags. Anyway thanks for the effort!
ILB is offline   Reply With Quote