![]() |
#16 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,079
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
'Im Far from being an expert.
If to want to split and insert., You need a capture for ALL the pieces so yo keep them. (There are more complicated non-capture ways. this works for me) (.+?)\:(.+?) <<remove existing colon \1 \2: <<place something at the end Want to discard part 1? just don't place it back \2: |
![]() |
![]() |
![]() |
#17 |
Enthusiast
![]() Posts: 37
Karma: 10
Join Date: Nov 2009
Device: SM-T820, Galaxy S7
|
The removal of the existing colon, as you suggested, and replacing with what I prefer (space on both sides of the colon) worked.
To spell it out for anyone else interested, see the attached screen capture. However, any existing Title : Subtitle will get an additional space before the colon and becomes Title__: Subtitle (I use underscore since two spaces will get weeded to one by this editor) The solution would be to first do a run converting any existing Title_:_Subtitle to Title:_Subtitle and then convert all to the desired outcome. Many thanks theducks for the efforts !!! Last edited by Pachuqismo; 02-13-2020 at 10:31 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Code:
(.*?)\s*\:\s*(.*?) Code:
\1 : \2 And, I missed what you wanted to do as you posted on a thread about a completely different topic. The thread is about working in the editor. You are using the metadata search and replace. While regex is common in both places, the regex needed to change the title is a lot simpler than that needed in the editor. |
|
![]() |
![]() |
![]() |
#19 | |||
Enthusiast
![]() Posts: 37
Karma: 10
Join Date: Nov 2009
Device: SM-T820, Galaxy S7
|
Quote:
Quote:
Quote:
Cheers! Last edited by Pachuqismo; 02-14-2020 at 10:56 AM. |
|||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
bookerly font - space after speech mark for C, K | stumped | Amazon Kindle | 7 | 05-08-2016 11:57 AM |
Help with RegEx to parse title with colon | racergirl76 | Library Management | 3 | 02-16-2016 02:13 AM |
EPUB to MOBI, kindle shows extra space after quotation mark | akita | Kindle Formats | 29 | 02-05-2016 02:14 AM |
Hard Sci-Fi Space Opera- HEGEMONY, by Mark Kalina | markkalina | Self-Promotions by Authors and Publishers | 54 | 09-04-2012 10:01 AM |
search replace puts \1(space) in text | isabelle1231 | Sigil | 2 | 05-21-2011 04:46 PM |