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?
$ 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 |