in reply to Re^3: Is there a hard limit on + in a regex?
in thread Is there a hard limit on + in a regex?

Yes, I'm reasonably sure. The only difference is that in XML::Validator::Schema the regex is built into a string and then compiled with qr//. But even that works from the command line:
$ perl -e '$s = join("", (("<object>") x 160_000)); $re = qr/^(?:<o +bject>)+$/; print "ok\n" if $s =~ /$re/;' ok

-sam

Replies are listed 'Best First'.
Re^5: Is there a hard limit on + in a regex?
by diotalevi (Canon) on Jul 09, 2004 at 19:40 UTC
    Why don't you show us the regexp and perhaps the regexp as dumped by perl -Mre=debug? That's what will really tell you what is going on.