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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Lookahead regex help
by debiandude (Scribe) on Aug 16, 2004 at 16:34 UTC | |
by borisz (Canon) on Aug 16, 2004 at 16:37 UTC | |
by Anonymous Monk on Aug 17, 2004 at 02:25 UTC |
In Section
Seekers of Perl Wisdom