View Single Post
Old 09-13-2010, 03:31 PM   #1
Partzz
Junior Member
Partzz began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jul 2010
Device: Blackberry
Help!! Having trouble with regular expression

Here is the file name.

Robert Doherty - Area 51 01 - Area 51.lit

My Problem is some of my series have numbers in the name, and I would like to be able to import with the numbers. For awhile, I lost my expression, and Calibre would not import past the number in the title either. I was able to repair that. Here is what I get with the example file now...

Example:

Title=Area 51 01 - Area 51
Author=Robert Doherty
Series Name=
Series Index=

What I would like to find out is if there is an expression that would seperate the numbers in the series and the series number.

My Current expression is below....
Quote:
^((?P<author>([^\-_0-9]+)(?=\s*-\s*)(?!\s*-\s*[0-9.]+)|\b))(\s*-\s*)?([\(\[]?(?P<series>[^0-9\-]+) (- )?(?P<series_index>[0-9.]+)[\)\]]?\s*-\s*)?(?P<title>.+)

Last edited by Partzz; 09-13-2010 at 03:33 PM. Reason: Oops! Mis typed some stuff!
Partzz is offline   Reply With Quote