View Single Post
Old 02-16-2011, 10:39 PM   #1
Debby
Connoisseur
Debby will become famous soon enoughDebby will become famous soon enoughDebby will become famous soon enoughDebby will become famous soon enoughDebby will become famous soon enoughDebby will become famous soon enough
 
Debby's Avatar
 
Posts: 75
Karma: 600
Join Date: Jul 2008
Location: Depends Upon the Season.....
Device: Cybook, Sony & ipad
Reg expression for importing

I have been working on importing files that are in the following format:

Ark Angel (Alex Rider 6) - Anthony Horowitz.lrf

Using:

(?P<title>([^\-_\[\(]+))(?P<series>[^_0-9-]*)(?P<series_index>[0-9]*)(?P<author>([^_\[\(]+))

I am getting really close!

Title: Ark Angel
Author: ) - Anthony Horowitz
Series: (Alex Rider
Series Index: 6.0

I have tried playing with the looking at other examples, the tutorial and playing with the spaces, but I only make it worse! Any advice would be appreciated.

Thanks.
Debby is offline   Reply With Quote