TASdvlper has asked for the wisdom of the Perl Monks concerning the following question:
Hopefully a quick one for ya. Say I have a string:
I want to run a regexp and search for 2 or more consecutive spaces, and if I find it, substitute for each space. So the above would look like:my $foo = "the lazy brown fox jumped..."
Any help would be greatly appreciated.my $foo = "the lazy nbsp;brown  fox &nb +sp; jumped..."
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Looking for white spaces between words
by Enlil (Parson) on Jun 10, 2004 at 20:31 UTC | |
by bradcathey (Prior) on Jun 10, 2004 at 20:47 UTC | |
by Enlil (Parson) on Jun 10, 2004 at 20:55 UTC | |
Re: Looking for white spaces between words
by elusion (Curate) on Jun 10, 2004 at 20:41 UTC | |
Re: Looking for white spaces between words
by Roy Johnson (Monsignor) on Jun 10, 2004 at 21:17 UTC | |
Re: Looking for white spaces between words
by fletcher_the_dog (Friar) on Jun 10, 2004 at 20:37 UTC |