Remove white space from text

General questions about using WildEdit

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
prjacob
Posts: 4
Joined: Thu Oct 21, 2004 9:32 pm

Remove white space from text

Post 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.
prjacob
Posts: 4
Joined: Thu Oct 21, 2004 9:32 pm

Post by prjacob »

There should be extra spaces in the "in:" string. Sorry
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post 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
Then I open up and see
the person fumbling here is me
a different way to be
prjacob
Posts: 4
Joined: Thu Oct 21, 2004 9:32 pm

Post 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.
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

You must have left out the plus sign (+), make sure the regex reads \s+
I Hope That Helps ;)
Then I open up and see
the person fumbling here is me
a different way to be
prjacob
Posts: 4
Joined: Thu Oct 21, 2004 9:32 pm

Post by prjacob »

It seems that monospace had to be checked in order for this to work. Again, thanks.
Post Reply