Rhiknow
February 8th, 2010, 08:16 PM
Greetings,
I'm writing a Perl script to clean some message forum text.
There are quite a few instances of
aaaaaaaaaaaaaah
gggggggrrrrrrrr
oooooooooouch
ggoooooooooooooooooogle
etc.
Anyone have any ideas as to how I might regex these out?
I was thinking of something like if the same character appears three times in a row, match the word so it can be deleted.
The insight of any regex expers is much appreciated.
Rhik
I'm writing a Perl script to clean some message forum text.
There are quite a few instances of
aaaaaaaaaaaaaah
gggggggrrrrrrrr
oooooooooouch
ggoooooooooooooooooogle
etc.
Anyone have any ideas as to how I might regex these out?
I was thinking of something like if the same character appears three times in a row, match the word so it can be deleted.
The insight of any regex expers is much appreciated.
Rhik