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

I'm not very sure what you're trying to do, but a simple m|([a-z])(\1)+|; should be enough to catch repetitive characters.
  • Comment on Re: Finding / Replacing repetetive characters from a string in a Regular expression.
  • Download Code

Replies are listed 'Best First'.
Re^2: Finding / Replacing repetetive characters from a string in a Regular expression.
by nims (Novice) on Oct 14, 2004 at 14:27 UTC
    Sorry, that doesn't work. The solution that really works is above: grep {length > 1} $aKnosID =~ /(([a-z])\2+)/g;