View Single Post
Old 04-12-2009, 02:37 PM   #8
jaeneva
Junior Member
jaeneva began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Apr 2009
Device: prs-505
Thanks again!

I've one last question. I've gone over the python manual link for matching expressions (I'm no coding genius) and find myself stuck.

Several of my books have an initial in the name. For example: Kevin J. Anderson

I've ALMOST got this to what it needs to be, processing:

Star Wars - [Young Jedi Knights 01] - Heirs of the Force (by Kevin J. Anderson & Rebecca Moesta).pdf

Currently processing to:

Title: Darkest Knight
Authors: Kevin J
Series: Star Wars - [Young Jedi Knights 05]

I'll be going in after to clean up the series because I'm entering in a bit more and it keeps it 'marked' in a way so I can differentiate between what I've finished editing, and what I still need to edit, so the Series is OK. However, as you can see, it's dropping everything in the author field after the .

Current expression is set to:

(?P<series>[^_]+) - ($P<title>.+) [(]*by*(?P<author>.+)

How do I fix the author so it pulls the entire Author instead of cutting off after the .?

Secondarily to that, I'm using *by* because some of them have "edited by" while others are just "by". Is there a way to set that up as an or, so it will look for "by" or "edited by"?
jaeneva is offline   Reply With Quote