Can anyone give me an equivalent regexp with less stack requirement, which can match up to 4M chars inside leading and ending quote? Thanks in advance.$n = 40000; $_ = "'" . "=" x $n . "'"; printf "Match %d chars\n", length($&) if /'(\\'|''|[^'])+'/;
In reply to regexp causes segfault by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |