From owner-freebsd-questions Thu Jan 24 17:46:56 2002 Delivered-To: freebsd-questions@freebsd.org Received: from relay03.roc.frontiernet.net (alteon01h.roc.frontiernet.net [66.133.130.238]) by hub.freebsd.org (Postfix) with SMTP id 3B9F437B404 for ; Thu, 24 Jan 2002 17:46:52 -0800 (PST) Received: (qmail 21131 invoked from network); 25 Jan 2002 01:46:51 -0000 Received: from unknown (HELO blacklamb.mykitchentable.net) ([207.173.227.80]) (envelope-sender ) by relay03.roc.frontiernet.net (qmail-ldap-1.03) with SMTP for ; 25 Jan 2002 01:46:51 -0000 Received: from tagalong (unknown [165.107.42.196]) by blacklamb.mykitchentable.net (Postfix) with SMTP id C2361EE5FD; Thu, 24 Jan 2002 17:46:49 -0800 (PST) Message-ID: <018a01c1a542$27fe5b10$c42a6ba5@lc.ca.gov> From: "Drew Tomlinson" To: "parv" Cc: References: <01f801c1a509$bd1d3060$c42a6ba5@lc.ca.gov> <20020124230306.GA70362@moo.holy.cow> Subject: Re: Regex Database Help? - SOLVED Date: Thu, 24 Jan 2002 17:46:49 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-Mimeole: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ----- Original Message ----- From: "parv" To: "Drew Tomlinson" Cc: 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