In a regular expressions (perl style) [] is used to signify a character class -- that is a set of characters that can match the pattern. So [96] means match a 9 or a 6. You can use '-' to specify a range of characters, so that [0-9] means any single digit between 0 and 9. In your reg exp, your character class is trying to match 9, any character between 6 and 1, 2, or 7. So the error is that you can't have a range (6-1) where the second value is below the first.

Analog now supports ranges without REGEXP and CIDR notation for selecting IP ranges. Try this instead:

       HOSTALIAS 66.153.70.96-127 mylabel

It's also much easier to read. :-)

See http://www.analog.cx/docs/include.html for more details.

--
Jeremy Wadsack
Seven Simple Machines


Derek Sisson wrote:

i'm trying to use hostalias regexp to map a range of IP numbers to a value. something like

HOSTALIAS REGEXP:^66\.153\.70\.[96-127] mylabel

the error i get is c:\logs\analog\analog: Warning C: Bad argument in configuration command:
ignoring it:
HOSTALIAS REGEXP:^66\.153\.70\.[96-127] mylabel
c:\logs\analog\analog: ...cont..: (range out of order in character class in
regular expression)


what simple and blindingly obvious mistake am i making here?


thanks, -- derek


+------------------------------------------------------------------------ | TO UNSUBSCRIBE from this list: | http://lists.meer.net/mailman/listinfo/analog-help | | Usenet version: news://news.gmane.org/gmane.comp.web.analog.general | List archives: http://www.analog.cx/docs/mailing.html#listarchives +------------------------------------------------------------------------





+------------------------------------------------------------------------ | TO UNSUBSCRIBE from this list: | http://lists.meer.net/mailman/listinfo/analog-help | | Usenet version: news://news.gmane.org/gmane.comp.web.analog.general | List archives: http://www.analog.cx/docs/mailing.html#listarchives +------------------------------------------------------------------------

Reply via email to