Quote:
Originally Posted by AbyssalAriel
|
The extra titles can be suppressed by matching string start and stop explicitly:
Code:
## Add labels to the copies
add_to_replace_metadata:
datePublishedCopy=>^(.*)$=>Published:\s\1
dateUpdatedCopy=>^(.*)$=>Completed:\s\1
numChaptersCopy,chapterslashtotalCopy=>^(.*)$=>Chapters:\s\1
numWordsCopy=>^(.*)$=>Words:\s\1
I'm honestly not sure why that's needed sometimes. Logically, it shouldn't be and I believe it changed at one point--pretty confident it wasn't needed when replace_metadata was developed and popped later. A difference between regex in py2 vs py3 maybe?