in reply to Re: Finding / Replacing repetetive characters from a string in a Regular expression.
in thread Finding / Replacing repetetive characters from a string in a Regular expression.

The difference is that your expression will match two (or more) different characters, while the OP wants to match two (or more) of the same. This should do it.
my @numbers = $aKnosId =~ /(([a-z])\2+)/g;
Except that both captures get returned. So to fix:
my @numbers = grep {length > 1} $aKnosId =~ /(([a-z])\2+)/g;

Caution: Contents may have been coded under pressure.
  • Comment on Re^2: Finding / Replacing repetetive characters from a string in a Regular expression.
  • Select or Download Code

Replies are listed 'Best First'.
Re^3: Finding / Replacing repetetive characters from a string in a Regular expression.
by nims (Novice) on Oct 14, 2004 at 14:28 UTC
    Thank you! Your solution works great :D.