View Single Post
Old 09-29-2011, 02:47 PM   #8
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by unboggling View Post
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 :
Code:
 - \(\(\d+\)\)
to strip off " - ((id#))" at the end of your filename.
Starson17 is offline   Reply With Quote