View Single Post
Old 08-25-2012, 03:11 AM   #1
Junior Member
mattam began at the beginning.
Posts: 6
Karma: 10
Join Date: Jan 2012
Device: Kindle
RegEx for title - author - series?

Have tried to convert other Regular Expressions to work when adding books into Calibre, but no luck.

Books in series are like this one: "To The King A Daughter - Andre Norton & Sasha Miller - Oak, Yew, Ash & Rowan".

Books without a series are like this: "Between the Dark - Algis".

Any ideas as to how to make series optional at the end of the string? Each time I try moving pieces of another RegEx around -- e.g. kiwidude's sample in QuickRef plug-in -- it only works for books with a series, but for those not in a series.

Have tried the Python Regular Expression documents, but don't seem to be able to find a solution.

Any help appreciated!
mattam is offline   Reply With Quote