|
|
#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 |
|
|
|
|
|
#2 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,682
Karma: 79983758
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
What is meant to tell this expression when to stop removing characters?
|
|
|
|
|
|
#3 |
|
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jan 2017
Device: rca tablet
|
stop when no more characters
|
|
|
|
|
|
#4 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,240
Karma: 61360164
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 |
|
|
|
|
|
#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
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
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 |