[asterisk-dev] zero-or-more match
Benny Amorsen
benny+usenet at amorsen.dk
Fri Feb 12 17:02:54 CST 2010
Tzafrir Cohen <tzafrir.cohen at xorcom.com> writes:
> To stress that, I figure you also want that:
>
> "3%1" matches "", "31", "331" etc
> "[a-z]%1" matches "", "b1", "yx1" etc
> "X%1" matches "", "01", "981" etc
>
> Right?
Right now the rule is that only the last pattern can match something
that isn't strictly 1 character. It would be GREAT if this limitation
could be lifted, but that requires a proper state machine with
backtracking. I think that is a bit much to ask just for this particular
issue.
/Benny
More information about the asterisk-dev
mailing list