in reply to How can I replace space sequences in a string with the number of spaces in each sequence?
$input =~ s/( +)/length $1/ge;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How can I replace space sequences in a string with the number of spaces in each sequence?
by tkguifan (Scribe) on Feb 04, 2015 at 11:41 UTC | |
|
Re^2: How can I replace space sequences in a string with the number of spaces in each sequence?
by tkguifan (Scribe) on Feb 04, 2015 at 11:48 UTC | |
by LanX (Saint) on Feb 04, 2015 at 12:03 UTC | |
by tkguifan (Scribe) on Feb 04, 2015 at 15:39 UTC | |
by LanX (Saint) on Feb 04, 2015 at 16:00 UTC |