in reply to Re^2: Perl 5.34 is released (bad code example)
in thread Perl 5.34 is released
what does it mean if the empty string can be repeated n times?
It means "We kept the heading short, feel free to split hairs." The single line below that heading reads: An empty lower bound is now accepted for regular expression quantifiers, like {,3}.
But I'm rather expecting Perl not reading the curlies as metas.
Correct. A open curly was interpreted literally in regular expressions in a lot of places in old Perl versions. Since Perl 5.26 some of these uses were forbidden, and Perl 5.28 made some of these uses non-fatal again. Relevant reading:
so {,3} is the same like {0,3} or {1,3} ?
Same as {0,3}.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Perl 5.34 is released (bad code example)
by LanX (Saint) on May 23, 2021 at 14:34 UTC | |
by LanX (Saint) on May 23, 2021 at 17:42 UTC | |
by LanX (Saint) on May 31, 2021 at 17:17 UTC |