View Single Post
Old 10-05-2013, 02:10 PM   #1
Trialjudge
Junior Member
Trialjudge began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2013
Device: Kindle Fire
Title to Metadata

I would like to use a file name of "Title - Author" for my Calibre catalog. But sometimes I want to use a file name of "Series ~ Title - Author" So I set my regular expression to:
(?P<series>.+) ~ (?P<title>.+) - (?P<author>[^_]+)

For example, "Bond ~ Diamonds Are Forever - Ian Fleming" works beautifully.

But if there is NO series, such as:

"Basic English - Henrietta Hornswaggle", Calibre doesn't read it.

I'm pretty sure the problem is I've written the wrong regular expression
(?P<series>.+) ~ (?P<title>.+) - (?P<author>[^_]+)
But I can't figure out how to do it correctly.

Any help would be greatly GREATLY appreciated.

Thanks!!!

TrialJudge AT aol.com
Trialjudge is offline   Reply With Quote