On Thu, 13 Apr 2000, Marco Bernardini wrote:
> At 18.40 12/04/2000 -0500, Michael wrote:
> >> So there is no way to have the range 20..31 (or the more usual 128..255) in
> >> a single line?
> >
> >Nope. Regexp knows nothing whatsoever about numbers, just strings. So
> ranges
> >just can't be done nicely. Sad but true.
>
> I see!
> But this seems to work fine for 0..127 range:
> HOSTALIAS REGEXP:^194\.243\.156\.. luna.it
> HOSTALIAS REGEXP:^194\.243\.156\.[1..9]. luna.it
> HOSTALIAS REGEXP:^194\.243\.156\.1[0..1]. luna.it
> HOSTALIAS REGEXP:^194\.243\.156\.12[0..7] luna.it
>
This can't be right. The first line catches anything matching 194.243.156.?*
(in the sense of non-regexp matching).
--
Stephen Turner http://www.statslab.cam.ac.uk/~sret1/
Statistical Laboratory, 16 Mill Lane, Cambridge CB2 1SB, England
"8th March 2000. National No Smoking Day. Ash Wednesday." (On a calendar)
------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------