Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 05-30-2014, 03:06 PM   #1
Tatjana
Coffee Girl
Tatjana began at the beginning.
 
Tatjana's Avatar
 
Posts: 16
Karma: 10
Join Date: May 2014
Device: no money for such things
Red face Please help me with regular expression :help:

Hello!

I imported a huge amount ebooks to Calibre, reading files metadata.

It happens that a few dozen thousands, had the metadata name wrong!

The most common error is this:

Coben, Harlan - Myron 01 (Field Authors)

I can easily set Authors from Author Sort in bulk with the great plugin "Check Quality", but I need to remove " - Myron 01" first (it is the series)

Could anyone please tell me how to make a search and replace to get rid from [space dash space] till the end of field?

Thank you very much in advance, I am sorry, but I do not know regular expressions, no matter how hard I am trying to learn.



Tatjana
Tatjana is offline   Reply With Quote
Old 05-30-2014, 05:24 PM   #2
theducks
Well trained by Cats
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: 31,046
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
REGEX mode ONLY FOR those with the stated problem

Code:
(.+) - (.+)
the last is space dash space openparen dot pluscloseparen

replace is \1

This should verify in the S&R test area
theducks is offline   Reply With Quote
Advert
Old 05-30-2014, 05:41 PM   #3
Tatjana
Coffee Girl
Tatjana began at the beginning.
 
Tatjana's Avatar
 
Posts: 16
Karma: 10
Join Date: May 2014
Device: no money for such things
Perfect! Thank you so very much!

Tatjana is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
More than 3 regular expression? james968 Conversion 1 04-04-2012 05:39 AM
Regular Expression Help iKarampa Calibre 13 12-15-2010 07:17 AM
Regular expression help krendk Calibre 4 12-04-2010 04:32 PM
Regular Expression Help smartmart Calibre 5 10-17-2010 05:19 AM
Help with the regular expression Dysonco Calibre 9 03-22-2010 10:45 PM


All times are GMT -4. The time now is 10:43 PM.


MobileRead.com is a privately owned, operated and funded community.