No need to go to those lengths:
$s = '0123456789' x 100000;; ( $m ) = $s =~ m[((?:(?:0123456789){32000}){3})];; print length $m;; 960000
But for any given application there's almost certainly a better way of tackling the problem.
In reply to Re^3: How to match more than 32766 times in regex?
by BrowserUk
in thread How to match more than 32766 times in regex?
by rsFalse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |