View Single Post
Old 08-28-2009, 02:23 AM   #14
sircastor
Reader
sircastor got an A in P-Chem.sircastor got an A in P-Chem.sircastor got an A in P-Chem.sircastor got an A in P-Chem.sircastor got an A in P-Chem.sircastor got an A in P-Chem.sircastor got an A in P-Chem.sircastor got an A in P-Chem.sircastor got an A in P-Chem.sircastor got an A in P-Chem.sircastor got an A in P-Chem.
 
sircastor's Avatar
 
Posts: 85
Karma: 6124
Join Date: Jul 2009
Device: PRS-505
Quote:
Originally Posted by GinoAMelone View Post
[/LIST]The only things it can't handle right now are:[*]Different ordering of the fields in the file name[/LIST]
I'm fairly certain this is actually not possible the regex matches that occur work because you know the order of the data as it's fed. If Authors were always in a predictable, recognizable format, you'd be able to identify them, but the way that Calibre is being fed the information, makes it so that it happens in one sweep. You have to know where to look for the Author (or title, or series, etc.) as well as what you're looking for. The most basic expressions here are ones that are written to break on hyphens, because they're predictable.

Unless I'm missing something, I would skip trying to get your expression to handle different orders.
sircastor is offline