View Single Post
Old 12-28-2011, 07:06 AM   #20
mshnryman
Member
mshnryman began at the beginning.
 
Posts: 19
Karma: 36
Join Date: Mar 2009
Device: Kindle Touch, Nook Simple Touch, Kindle 2, Nook 1st Gen
Quote:
Originally Posted by Perkin View Post
This should work for this use.

Set the regex to
Code:
(?P<title>.+) (?P<author>.+ .+)
Hope that works for you.

Edit: This will only work for authors with two names, not ones with three, such as Dr. or Jnr. etc.
Thank you for the code!

I just finished manually adding all my docx files to calibre, but I tested your regex suggestion, and it appears to work perfectly! I'll definitely use that in the future whenever I'm bringing more docx files into calibre. Thanks a lot for your help!
mshnryman is offline   Reply With Quote