01-07-2017, 09:47 AM | #1 |
Junior Member
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 |
01-07-2017, 09:57 AM | #2 |
Grand Sorcerer
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?
|
Advert | |
|
01-07-2017, 12:14 PM | #3 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jan 2017
Device: rca tablet
|
stop when no more characters
|
01-07-2017, 04:34 PM | #4 |
Well trained by Cats
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:
(.+?)\:.+ Code:
\1 |
01-07-2017, 06:39 PM | #5 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jan 2017
Device: rca tablet
|
Thank you so much worked like a charm saved me hours of work
|
Advert | |
|
|
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 |