View Single Post
Old 04-05-2011, 06:45 AM   #1
leria
Junior Member
leria began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2011
Device: none
regular expresion (clean the spaces)

sorry , it is my first regular espresion
the type of files are :

series numberofserie - title - author.epub
title - autor.epub


i have made this

^((?P<series>[^0-9-]*)(?P<series_index>[0-9]*)(\s-\s?)|)?( ??(\s*)(?P<title>[^_].*))(\s-\s)(\s?)(?P<author>[^_].*)

i want clean the left spaces of title , author and series.
i think i have made it for title and author , but i cant do it in the series , can you help me?
thank you a lot
leria is offline   Reply With Quote