|Problems? Is your data what you think it is?|
Re^5: counting the number of 16384 pattern matches in a large DNA sequenceby BrowserUk (Pope)
|on Jun 15, 2012 at 06:09 UTC||Need Help??|
Unless I'm missing something, ... (as long as it's not necessary to match overlapping matches):
You hit the nail on the head. You'll only match 5,015,229 times when the OPs code matches 35,106,546 times.
However, with a modification to your regex, you can avoid that problem and find overlapping matches:
But it is still much slower than avoiding the regex engine completely:
But ++ for thinking outside the box. (I can't believe I actually used that phrase :)
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.