in reply to Can split split against more than one character in a string of the same character?
and grep away the empty elements.D:\ENV>perl -e "$x = qq#aaaaaaa#; print join '#', split /(..)/, $x" #aa##aa##aa#a
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can split split against more than one character in a string of the same character?
by Don Coyote (Hermit) on Jul 15, 2019 at 22:23 UTC |