in reply to Replacing string with its length in Regex
sub template { return join ',', map length($_), shift =~ /(X+)/g; }
-- Randal L. Schwartz, Perl hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Replacing string with its length in Regex
by Brovnik (Hermit) on Jul 27, 2001 at 23:07 UTC | |
by Everlasting God (Beadle) on Jul 28, 2001 at 00:17 UTC |