my $str= "AAABBCCCC"; my @x; push @x, $1 while $str =~ /((.)\2*)/g;
- tye
In reply to Re: Split a string based on change of character (also)
by tye
in thread Split a string based on change of character
by eyepopslikeamosquito
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |