View Single Post
Old 06-05-2020, 07:25 PM   #4164
Loba
Enthusiast
Loba began at the beginning.
 
Loba's Avatar
 
Posts: 29
Karma: 10
Join Date: Sep 2016
Device: PW2 Wifi-4GB
I wonder if anyone can give me some feedback on my replace metadata syntax. I am attempting to normalize my ratings across sites and when scraping Not Rated fics it is applying "Not Mature".

Code:
 rating=>^Everyone|P?G(.*)?|FR7|K\+?|Young Teens?$=>General Audiences
 rating=>^15|FR13|FR15|T|Teens?\+?|PG-13(.*)?$=>Teen And Up Audiences
 rating=>^FR18|M(ature)?|R(.*)?$=>Mature
 rating=>^Adult( Only)?|FR21|NC.?17(.*)?|X(.*)?$=>Explicit
 rating=>^$=>Not Rated
 rating=>^Unrated$=>Not Rated
Thank you

Edit: I did isolate the issue which was the (.*)? in the =>Mature line. I am curious however if there is a way to structure that so it will catch "R", "R Rated", and "R - Restricted" without spelling them all out.

Last edited by Loba; 06-05-2020 at 07:38 PM.
Loba is offline   Reply With Quote