View Single Post
Old 06-24-2015, 05:03 AM   #1
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 571
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
Regexp help for saving books

When saving books I specify the directory as {author_sort:re([.],)} to remove dots from the name, so that e.g. books by A.A. Milne are saved in "Milne, AA"

However, where there are multiple authors, I want only the first author, so I want to apply a second RE to remove everything after "&": something like {author_sort:re([.],):re(\&.*$,)}, but this is of course not valid.

What should I write to keep only the first author but with dots removed?
Phssthpok is offline   Reply With Quote