View Single Post
Old 07-04-2013, 11:29 PM   #1
Dragouf
Junior Member
Dragouf began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jul 2013
Device: ipad
adding book : series is part of the whole title

Hi,


I tried to import books and extract details from filename.

The problem is that I want to extract part of the title as serie and index but without to delete this part from title.

Anyone know how to do this and if it's possible ?

So to better explain here is the example of what I want :

filename : Soda - 12 - Code apocalypse

title : Soda - 12 - Code apocalypse
serie : Soda
index : 12

My curret regex is : (?P<series>.*) - [A-Z]?(?P<series_index>[^_]+) - (?P<title>[^_]+)

But the problem with that is that my title is : Code apocalypse.
Dragouf is offline   Reply With Quote