View Single Post
Old 10-27-2009, 09:39 AM   #8
stustaff
Wizard
stustaff knows what time it isstustaff knows what time it isstustaff knows what time it isstustaff knows what time it isstustaff knows what time it isstustaff knows what time it isstustaff knows what time it isstustaff knows what time it isstustaff knows what time it isstustaff knows what time it isstustaff knows what time it is
 
Posts: 1,055
Karma: 2110
Join Date: Nov 2007
Location: Derbyshire UK
Device: sony reader PRS505 and 600
Quote:
Originally Posted by kovidgoyal View Post
Not quite an idiots guide, I'm afraid. Basically, you have to learn to use regular expressions. Here's a guide to regular expressions

http://docs.python.org/library/re.html
Ok complicated!?



I have had a go though but havent had chance to test.

what does anyone think of the chances that this would work for the following file name,types.

STAR TREK - DS9 - 01 - Emissary_512

STAR TREK - TNG - 01 - Ghost Ship_624

(?P<author>[^_-]+) -?\s*(?P<series>[^_-]*)\s*-\s*(?P<series_index>[0-9]*)\s*-\s*(?P<title>[^_]+) ?
stustaff is offline   Reply With Quote