El Jueves, 11 de Diciembre de 2008, Brett Tate escribió:
> RFC 2234 section 3.8 indicates meaning of the brackets within ABNF:
>
> Square brackets enclose an optional element sequence:
>
> [foo bar]
>
> is equivalent to
>
> *1(foo bar).
Let me insist a bit ;)
-----------------
3.6 Variable Repetition *Rule
The operator "*" preceding an element indicates repetition. The full
form is:
<a>*<b>element
where <a> and <b> are optional decimal values, indicating at least
<a> and at most <b> occurrences of element.
Default values are 0 and infinity so that *<element> allows any
number, including zero; 1*<element> requires at least one;
3*3<element> allows exactly 3 and 1*2<element> allows one or two.
------------------
So 1*ANYTHING means requires at least one ANYTHING.
:)
--
Iñaki Baz Castillo
_______________________________________________
Sip-implementors mailing list
[email protected]
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors