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: <Pine.BSF.4.21.0201021227430.41813-100000@pemaquid.safeport.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0201021227430.41813-100000>