From owner-freebsd-questions Wed Jan 2 9:34:24 2002 Delivered-To: freebsd-questions@freebsd.org Received: from pemaquid.safeport.com (pemaquid.safeport.com [204.156.12.58]) by hub.freebsd.org (Postfix) with ESMTP id 1003737B50E for ; Wed, 2 Jan 2002 09:34:15 -0800 (PST) Received: from localhost (doug@localhost) by pemaquid.safeport.com (8.11.6/8.11.6) with ESMTP id g02HYDR46476 for ; Wed, 2 Jan 2002 12:34:14 -0500 (EST) (envelope-from doug@safeport.com) Date: Wed, 2 Jan 2002 12:34:12 -0500 (EST) From: doug@safeport.com To: freebsd-questions@FreeBSD.ORG Subject: Regex Question - email matching Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 I know this is impossible in general. I am looking for something that matches the normal me@domain.tld. What I settled on so far is (in perl): \w+\@\w+\.\w+ This is cool in that it is short, it matches things like first.last@host.domain.tld. It unfortunately also matches me@name@domain.tld which I do not believe is valid. So my question: is there an *easy* way to require exactly one "@". Thanks for any pointers. _____ Douglas Denault doug@safeport.com Voice: 301-469-8766 Fax: 301-469-0601 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message