View Single Post
Old 12-16-2012, 12:17 PM   #2
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,100
Karma: 5939999
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by ippopom View Post
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
The bulk metadata editor has a search and replace (on a tab).

do you know REGEX ?
\(.+\) should trap the paren and contents, you will need more patterns
theducks is offline   Reply With Quote