Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jan 2002 17:46:49 -0800
From:      "Drew Tomlinson" <drew@mykitchentable.net>
To:        "parv" <parv_@yahoo.com>
Cc:        <questions@freebsd.org>
Subject:   Re: Regex Database Help? - SOLVED
Message-ID:  <018a01c1a542$27fe5b10$c42a6ba5@lc.ca.gov>
References:  <01f801c1a509$bd1d3060$c42a6ba5@lc.ca.gov> <20020124230306.GA70362@moo.holy.cow>

next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message -----
From: "parv" <parv_@yahoo.com>
To: "Drew Tomlinson" <drew@mykitchentable.net>
Cc: <questions@freebsd.org>
Sent: Thursday, January 24, 2002 3:03 PM
Subject: Re: Regex Database Help?


> in message <01f801c1a509$bd1d3060$c42a6ba5@lc.ca.gov>,
> wrote Drew Tomlinson thusly...
> ...
> > # Allow allhosts.some.domain
> > /*\.some\.domain$/    OK
> >
> > In other words, allow all hosts that end in some.domain.  However, I
> > have tried this different ways without success.
> ...
>
> did you try...
>
> /some\.domain$/   OK

Your suggestion works for my example but I really wanted a finer control
as the real servers I were trying to allow started with web, had some
number after web, and then .some.domain.  I learned (from some private
email) that it is a '.', not a '*', that matches everything.  Then I
added the '*' to quantify the match meaning 0 or more previous
characters.  So my final expression looked like this:

/^web.*\.some\.domain$/

Thanks for your help,

Drew


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?018a01c1a542$27fe5b10$c42a6ba5>