From owner-freebsd-questions Fri Jan 25 2:11:51 2002 Delivered-To: freebsd-questions@freebsd.org Received: from relay1.ntu-kpi.kiev.ua (www.ntu-kpi.kiev.ua [212.111.192.161]) by hub.freebsd.org (Postfix) with ESMTP id 66B1037B402 for ; Fri, 25 Jan 2002 02:11:45 -0800 (PST) Received: from comsys.ntu-kpi.kiev.ua (eth0.comsys.ntu-kpi.kiev.ua [10.0.1.184]) by relay1.ntu-kpi.kiev.ua (Postfix) with ESMTP id 856F42EEDB; Fri, 25 Jan 2002 12:11:38 +0200 (EET) Received: from pm5149 (pm514-9.comsys.ntu-kpi.kiev.ua [10.18.54.109]) by comsys.ntu-kpi.kiev.ua (8.11.6/8.11.6) with SMTP id g0PAE2n53706; Fri, 25 Jan 2002 12:14:02 +0200 (EET) Message-ID: <008401c1a57f$710272a0$6d36120a@comsys.ntukpi.kiev.ua> From: "Andrey Simonenko" To: "Drew Tomlinson" Cc: References: <01f801c1a509$bd1d3060$c42a6ba5@lc.ca.gov.lucky.freebsd.questions> Subject: Re: Regex Database Help? Date: Fri, 25 Jan 2002 12:05:30 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 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: Drew Tomlinson Newsgroups: lucky.freebsd.questions Sent: Thursday, January 24, 2002 10:03 PM Subject: Regex Database Help? > # Allow somehost.some.domain > /^somehost\.some\.domain$/ OK > > This works fine. Now what I would like to do is something like this: > > # 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. I assume this is > possible? Can someone help me get the syntax right for this regular > expression. From what I know, I would expect the above to work but it > doesn't. > If it is a POSIX RE, then you should write: /\.some\.domain$/ OK or /.*\.some\.domain$/ OK or /^.*\.some\.domain$/ OK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message