sub template { return join ',', map length($_), shift =~ /(X+)/g; }
-- Randal L. Schwartz, Perl hacker
In reply to Re: Replacing string with its length in Regex
by merlyn
in thread Replacing string with its length in Regex
by Brovnik
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |