$repeater = qr/(.)\1+/; @matches = $string =~ /((??{$repeater}))/g;
In reply to Re: Elegant way to split into sequences of identical chars?
by ysth
in thread Elegant way to split into sequences of identical chars?
by pKai
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |