View Single Post
Old 12-16-2012, 10:16 AM   #1
ippopom began at the beginning.
Posts: 25
Karma: 10
Join Date: Mar 2010
Device: palm tungsten T5
Question how to subctract a part of filename ??

Hi to all

I'm trying to import some ebook in my library.
Using regular expression to exctract author and title from filename ((?P<author>[^_]+) - (?P<title>.+)) work fine but I need to subctract a string from filename that is not part of the title but it repeat in all filenames.

Under an example:

David Green - The great war (philiph collection)

importing this ebook the result is:

Author: David Green ....that is ok
Title: The great war (philip collection)

I need to avoid the string :"(philip collection)" from all imported ebook.

Is there a way to do that ?

really TnX in advance for help.

By Ippopom
ippopom is offline   Reply With Quote