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 01-07-2017, 09:47 AM   #1
Midimann
Junior Member
Midimann began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2017
Device: rca tablet
Python Expression

Does anybody have an expression that will remove all characters after a colon

eg The Alpha Plague 4: A Post-Apocalyptic Action Thriller
result The Alpha Plague 4
Midimann is offline   Reply With Quote
Old 01-07-2017, 09:57 AM   #2
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,162
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
What is meant to tell this expression when to stop removing characters?
PeterT is offline   Reply With Quote
Advert
Old 01-07-2017, 12:14 PM   #3
Midimann
Junior Member
Midimann began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2017
Device: rca tablet
stop when no more characters
Midimann is offline   Reply With Quote
Old 01-07-2017, 04:34 PM   #4
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: 29,792
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Scary
Way too much ASSUME

Sometimes... The piece after the : is NOT a sub-title (or other cr*p)


you could do the with REGEX in the bulk Metadata edit upon the TITLE
Code:
(.+?)\:.+
replace
Code:
\1
theducks is offline   Reply With Quote
Old 01-07-2017, 06:39 PM   #5
Midimann
Junior Member
Midimann began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2017
Device: rca tablet
Thank you so much worked like a charm saved me hours of work
Midimann is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can someone help me with the expression to create a VL? Sydney's Mom Calibre 1 02-12-2015 12:33 PM
Need help with Expression Logan06 Library Management 5 05-06-2011 04:09 PM
Expression? TwinmtnNH Library Management 8 03-25-2011 01:55 PM
Need help with expression Gurkburken Conversion 1 03-08-2011 02:20 PM
Regular expression help krendk Calibre 4 12-04-2010 04:32 PM


All times are GMT -4. The time now is 09:30 AM.


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