http://qs321.pair.com?node_id=383358


in reply to Lookahead regex help

Im not really sure if this is what you have in mind:
my $string = 'aaabbcddeef'; while($string =~ m/((.)\2*)/gi) { print "$1\n"; } __OUTPUT__ aaa bb c dd ee f
Boris