Quote:
Originally Posted by unboggling
How would I change my Add Books regex to strip off the id in the title? Sorry, I don't understand regex well enough to figure it out by myself yet… Here's the new save template:
Code:
{author_sort}/{title}/{title} - {authors} - (({id}))
And this is the Add by filename regex I've been using:
Code:
(?P<author>[^_-]+) -?\s*(?P<series>[^_0-9-]*)(?P<series_index>[0-9]*)\s*-\s*(?P<title>[^_].+) ?
Edit: Never mind, I just tested and that Add by filename regex handles it automatically as is. Also, normally I Add (checkbox Checked) using Read metadata from file contents — where it doesn't matter anyway.
|
Odd, the posted regex doesn't seem to work for the Save to Disk template above.
Code:
{author_sort}/{title}/{title} - {authors} - (({id}))
If it's working for you, that's fine, but if not, add this to the end :
to strip off " - ((id#))" at the end of your filename.