thenewguy111
MIS
Hi All,
I'm having a problem with a regex to look for repeated characters in a string.
there is about 10 000 00 different strings and i need to know how to look for any character that appears 3 times in the string.
EX:
my $a = 'abcabca';
something like
if (char appears 3 times in $a)
{
# do something
}
wihout actually specifying which character to look for.
I hope im clear in what im looking for, if not, please let me know.
Thank you very much,
P.
I'm having a problem with a regex to look for repeated characters in a string.
there is about 10 000 00 different strings and i need to know how to look for any character that appears 3 times in the string.
EX:
my $a = 'abcabca';
something like
if (char appears 3 times in $a)
{
# do something
}
wihout actually specifying which character to look for.
I hope im clear in what im looking for, if not, please let me know.
Thank you very much,
P.