View Single Post
Old 10-29-2015, 07:28 AM   #1
crankypants
Hmm.
crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.
 
Posts: 124
Karma: 2016606
Join Date: Oct 2015
Device: Android 4.2 Google Play Reader
How to make regex to replace 2 spaces between words, with one space?

Sigil 0.8.7 on Windows 8.

When I paste a text file into Sigil it does lots of formatting for me, that's great. But many times I end up with 2 spaces between words, and in the Sigil preview window, these 2 spaces are not compressed into 1 space, which I thought XHTML would do, just like HTML.

So, I want to replace 2 spaces (or more) that are between words, with one single space. Example where _ is a space.

Code:
Good__morning_today.
Should end up as:

Code:
Good_morning_today.
This should not be affected.

Code:
_____<p>This is the beginning of a paragraph.</p>
crankypants is offline   Reply With Quote