Page 1 of 1

Remove white space from text

Posted: Thu Oct 21, 2004 9:37 pm
by prjacob
Using a regex, how can I remove whitespace greater that 1 char in lines of text using WildEdit.
in: The quick brown fox.
out: The quick brown fox.

Posted: Thu Oct 21, 2004 9:38 pm
by prjacob
There should be extra spaces in the "in:" string. Sorry

Posted: Thu Oct 21, 2004 10:01 pm
by s_reynisson
To post text "as is" you can use the Code tag

Code: Select all

in: The     quick     brown      fox.
out: The quick brown fox.
Find \s+
Replace with X
where X=space
using Regular expression and Replacement format - HTH

Posted: Thu Oct 21, 2004 10:40 pm
by prjacob
First, thanks. It only seemed to remove one space in each group. I have 'replacement format' checked and 'regex', but can't find reference to HTH.

Posted: Thu Oct 21, 2004 10:57 pm
by s_reynisson
You must have left out the plus sign (+), make sure the regex reads \s+
I Hope That Helps ;)

Posted: Fri Oct 22, 2004 1:17 pm
by prjacob
It seems that monospace had to be checked in order for this to work. Again, thanks.