Quantcast
Channel: MobileRead Forums - Calibre
Viewing all articles
Browse latest Browse all 31491

RegEx for title - author - series?

$
0
0
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 01.mobi".

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

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!

Viewing all articles
Browse latest Browse all 31491

Trending Articles