On Sun, Nov 14, 2010 at 07:28:46PM -0500, Wietse Venema wrote:
Each pattern field is either a decimal number, or it is a numeric
wildcard. Decimal numbers match themselves; for example the pattern
127.0.0.2 matches the DNSXL result 127.0.0.2. A numeric wildcard
field matches one or more number values; for example, the pattern
127.0.[1,2,11].[1-3] requires that the third DNSXL result field has
the value 1 or 2 or 11, and that the fourth DNSXL result field is
any decimal number in the range 1 through 3 inclusive.
I would suggest using a slightly different syntax for numeric wildcards.
Being those either lists or ranges i would use a syntax similar to the
one used by many shells for lists, plus the extensions introduced in zsh
and bash for ranges.
In practice enclosing numeric wildcards in braces, using comma as a list
separator and ".." as a range separator.
With this syntax your example above would become:
127.0.{1,2,11}.{1..3}
Having a different syntax will make it clear to the user we are not
dealing with regexp or glob patterns, and reduce the chance of
confusion.
Regards,
L.
--
Luca Berra -- [email protected]