coldfingertips has asked for the wisdom of the Perl Monks concerning the following question:
I tried
But it fails and appears to remove nothing. Any pointers?my $string = "hi there world! La la 12 12 14 : 19 : hi"; $string =~ s/\s{2}//g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: removing 2 blanks from a string
by Fletch (Bishop) on Jun 20, 2006 at 17:21 UTC | |
|
Re: removing 2 blanks from a string
by sh1tn (Priest) on Jun 20, 2006 at 17:11 UTC | |
|
Re: removing 2 blanks from a string
by swampyankee (Parson) on Jun 20, 2006 at 17:23 UTC | |
|
Re: removing 2 blanks from a string
by rsriram (Hermit) on Jun 26, 2006 at 12:47 UTC |