I entered this as the Regular Expression:
Quote:
Originally Posted by user_none
Code:
[^_]+_(?P<author>[^_]+)_((?P<series>[^_\d]+)(?P<series_index>\d+)?_)?(?P<title>[^_]+)
|
My test file names were:
- Genre_AuthorLastName_Title.prc
- Genre_AuthorLastName_Series01_Title.prc
which gave the following results respectively:
- Title = Genre AuthorLastName Title
- Title = Genre AuthorLastName Series01 Title
It's been a while since I played with Calibre but since I'm not working right now I thought I'd finally do that first mass import of all my eBooks. Unfortunately for me, the coding I learned in school for C+ didn't look anything like this.