#3 braced quantifiers: {\d+(,|,\d+)?} style

closed
nobody
None
5
2004-03-30
2004-02-06
No

0.9.1 supports nongreedy * and + closure quantifiers.

This patch allows for perl-style {\d+(,|,\d+)?}
closures. Why describe it myself, a clip from the
perlre man page:

{n} Match exactly n times
{n,} Match at least n times
{n,m} Match at least n but not more than m
times

Example re2c patthen:

"a" "b"{4,8} "c" { code here; }

As with the _ and * quantifiers, it modified a a
"primary" gammar element.

Discussion

  • Theo Schlossnagle

    braced quantifiers patch

     
  • Marcus Börger

    Marcus Börger - 2004-03-30
    • status: open --> closed
     

Log in to post a comment.