in reply to Finding / Replacing repetetive characters from a string in a Regular expression.
It looks to me like your expression is the equivilent of :
my @numbers = $aKnosId =~ m/([a-z]{2,})/gUpdate I was totally wrong... sorry. Try this:
my @numbers = $aKnosId =~ m/(([a-z])(?:(?=\2)[a-z])+)/gBut then again Roy's answer is better.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Finding / Replacing repetetive characters from a string in a Regular expression.
by Roy Johnson (Monsignor) on Oct 14, 2004 at 13:33 UTC | |
by nims (Novice) on Oct 14, 2004 at 14:28 UTC |