... I was using a 1,000,000 character string ...
Please see haukex's comment on this here in the paragraph beginning "You've got a few other issues in your code". In fact, the strings you were producing with the OPed code are only about 12,000 characters long.
Give a man a fish: <%-{-{-{-<
In reply to Re^3: count backrefenence regex
by AnomalousMonk
in thread count backrefenence regex
by tmolosh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |