I am trying to use Calibre on my mac to organize my ebook library.
As a summer personal project, I created various epubs of my nephews' and nieces' school reports as keepsakes on my computer and phone. I had labeled the files as: Title_Last Name, First Name.epub
For example: Report on ATP Cycle_Doe, John.epub
With Calibre I found you can configure metadata from the file name: Link
For example:
(?P<title>.+) - (?P<author>[^_]+)
Would only work if the file name was: Title - First Name Last Name.epub
I tried:
(?P<title>.+)[^\w](?P<author>[^_]+)
And it would return the title as: Report on ATP Cycle Doe,
And the author as: John
Can anyone can help me figure out a RegEx expression to extract the title and author from the file name convention that I used?
Such that the title is: Report on ATP Cycle
And the author is: John Doe
It is much appreciated.