And your command line example run fine (well, both print "ok") on perl, v5.8.3 built for i386-linux-thread-multi - that's the debian "testing" package, and perl, v5.8.4 built for i386-linux-thread-multi (that's debian "unstable")#!/usr/bin/perl my $s = "<object>" x 1600_000; #made higher to be sure die("Failed validation!") unless $s =~ /^(?:<object>)+$/; print "ok\n";
In reply to Re: Is there a hard limit on + in a regex?
by Joost
in thread Is there a hard limit on + in a regex?
by samtregar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |