Hi, all, I have a string like "aaacdf", I want to find how many "aa" in the string. Obviously, It is 2 in this case. it is easy to do in Perl, but how to do such overlapping match in R or Splus. Thanks! Y.Fan