Quote:
Originally Posted by Azrael_Jinsei
I have been attempting to standardize ships to make them easily searchable on the kindle. However, I am having trouble figuring it out.
I attempted using the following code:
Code:
[defaults]
add_to_replace:
ships=>Harry Potter/Severus Snape/Remus Lupin/Tom Riddle=>HPSSLVO, HPSSLVRL
|
It took me a while to figure it out as well. But I've picked up a few tricks along the way thanks to this thread. You're using regular expressions, I would suggest getting the basics down with some tutorials on "https://regexone.com/lesson/introduction_abcs" and check Jimm's tutorial on Github "https://github.com/JimmXinu/FanFicFare/wiki/ReplaceMetadata"
What's wrong with your code here is the punctuation "/" in regex gives different results so you'll need to cancel them with "\". I also believe it should be "replace metadata" and not "add to replace metadata", but that part I'm not a 100% sure of.
As for the code, try this, I use similar code and int works fine for me:
Code:
replace_metadata:
ships=>^Harry Potter\/Severus Snape\/Remus Lupin\/Tom Riddle$=>HPSSLVO, HPSSLVRL