![]() |
#1 |
Member
![]() Posts: 20
Karma: 10
Join Date: Mar 2018
Device: none
|
![]()
Hello,
In my ebooks I need to Find/Replace every "one-character word plus the space behind it" by the "one-character word and the non-breaking space behind it". The list of one-character words is: s z k v a i o u I think regex in Find/Replace is the way but it is out of my logic capabilities. Can someone experienced in regex wtite me the code to put in the Find and Rerplace fields in Sigil? Thanks a lot. |
![]() |
![]() |
![]() |
#2 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 809
Karma: 2416112
Join Date: Jan 2017
Location: Poland
Device: Various
|
One of the possible solutions:
Find: Code:
(?<=\s[szkvaiou])\s+ Code:
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 20
Karma: 10
Join Date: Mar 2018
Device: none
|
Thanks a lot, it works!
![]() |
![]() |
![]() |
![]() |
#4 |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,664
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
I think that may have replaced
space-character-space with space-character-nonbreakingspace instead of nonbreakingspace-character-space. Or else I've not understood the regex properly. |
![]() |
![]() |
![]() |
#5 |
Member
![]() Posts: 20
Karma: 10
Join Date: Mar 2018
Device: none
|
I do not understand regex, but it works well. It replaces the space after a one-character word by nonbreakinspace.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,664
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
In that case, I understood it correctly. Thanks.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
HeLpS NeEdEd AlL oF yOu! Especially U.K and U.S members | spiritshaman14 | Reading Recommendations | 21 | 03-21-2014 09:54 AM |
Google helps fight piracy | HansTWN | News | 24 | 08-14-2012 01:11 PM |
Thank you to everyone who helps with the Iriver Story! | tjgoldstein | iRiver Story | 0 | 12-19-2011 01:29 AM |
Kindle helps ebook prices | JSWolf | Amazon Kindle | 6 | 11-20-2007 05:53 PM |