View Single Post
Old 06-23-2020, 10:51 AM   #4240
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,039
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by ownedbycats View Post
Question: Any suggestions why this regex in particular would return a blank result on fics tagged "Mass Effect" only on Fanfiction.net? It tested fine and works fine on AO3 so I can't figure out where I made a mistake.

Code:
 category=>(^(?=.*Mass Effect)(?!.*Mass Effect Trilogy).*|Mass Effect - All Media Types)=>Mass Effect Trilogy
I also tried swapping it out for (^(?=.*Mass.Effect) in case there was something going on with a non-standard space, but it also returned blank.
If the difference is which site it's on (assuming your AO3 example had tag "Mass Effect" as well), I'd be looking if you have something in your [fanfiction.net] section that affects it or overrides your settings.

BTW, when you start using negative and positive look aheads in the same regexp you are beyond my regexp level--have fun with that black magic. I'd just split it into more than one line if it's causing problems.
JimmXinu is offline   Reply With Quote