View Single Post
Old 04-19-2015, 11:20 AM   #60
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,037
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Tanjamuse View Post
Code:
 category=>Percy Jackson and the Olympians & Related Fandoms - All Media Types$=>Percy Jackson & The Olympians
This one I admit is rather obscure. The & is actually &amp; because of xhtml entities. The same thing happens with <(&lt;) >(&gt;).

So this works:
Code:
 category=>Percy Jackson and the Olympians &amp; Related Fandoms - All Media Types$=>Percy Jackson & The Olympians
But I suggest instead considering:

Code:
 category=>.*Percy Jackson.*Olympians.*=>Percy Jackson & The Olympians
That will catch everything that contains 'Percy Jackson' and 'Olympians' in that order without regard to what appear before, between or after those strings.

@thatblondelady: Good guess about the regex escaping, but & isn't a regex special character. They are: [\^$.|?*+()

I'm adding something to the wiki page about replace_metadata about this.
JimmXinu is offline   Reply With Quote