View Single Post
Old 06-16-2009, 12:05 AM   #6
CleverClothe
Guru
CleverClothe ought to be getting tired of karma fortunes by now.CleverClothe ought to be getting tired of karma fortunes by now.CleverClothe ought to be getting tired of karma fortunes by now.CleverClothe ought to be getting tired of karma fortunes by now.CleverClothe ought to be getting tired of karma fortunes by now.CleverClothe ought to be getting tired of karma fortunes by now.CleverClothe ought to be getting tired of karma fortunes by now.CleverClothe ought to be getting tired of karma fortunes by now.CleverClothe ought to be getting tired of karma fortunes by now.CleverClothe ought to be getting tired of karma fortunes by now.CleverClothe ought to be getting tired of karma fortunes by now.
 
Posts: 618
Karma: 493394
Join Date: Jun 2008
Location: Seattle, WA
Device: iRex iLiad, Onyx Boox 60
Just so you are on the same page, those expressions are called regular expressions (or regex).

What you have will detect books like this:

Author - Title.pdf
Author - Series 1 - Title.pdf
Author - Series 2 - Title.pdf


The default expression in my Calibre (0.5.10) is:

(?P<title>.+) - (?P<author>[^_]+)
CleverClothe is offline   Reply With Quote