View Single Post
Old 04-24-2015, 03:22 PM   #3
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: 30,957
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by jlocicero View Post
I want to remove instances of two spaces in a book I am editing. If I just seach for " " (two spaces) I get a lot of hits in parts of the book that are not book content - like css code.

What search term can I use to find two spaces in only text of the book?
NOT TESTED

REGEX
Code:
([(\w)\s{2,}(\w)
find 2 or more space between words

Code:
\1\2
total removal you might want 1 after the \1

most render engines collapse multiple consecutive spaces anyway, so except for file size growth... why bother
EXCEPTION: inside a <Pre tag
theducks is offline   Reply With Quote