Date: Fri, 25 Jan 2002 12:05:30 +0300 From: "Andrey Simonenko" <simon@comsys.ntu-kpi.kiev.ua> To: "Drew Tomlinson" <drew@mykitchentable.net> Cc: <freebsd-questions@freebsd.org> Subject: Re: Regex Database Help? Message-ID: <008401c1a57f$710272a0$6d36120a@comsys.ntukpi.kiev.ua> References: <01f801c1a509$bd1d3060$c42a6ba5@lc.ca.gov.lucky.freebsd.questions>
next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message ----- From: Drew Tomlinson <drew@mykitchentable.net> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?008401c1a57f$710272a0$6d36120a>