From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: How do I check if the format of an email address is valid? Date: Sun, 02 Apr 2006 15:02:11 +0200 Message-ID: <442FCB53.1000204@student.lu.se> References: <1143980402.192253.25161.nullmailer@totoz-linux> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1143982958 20064 80.91.229.2 (2 Apr 2006 13:02:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 2 Apr 2006 13:02:38 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Mathias Dahl Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 02 15:02:36 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FQ2Du-0004GJ-5n for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Apr 2006 15:02:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FQ2Dt-0005nL-PX for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Apr 2006 09:02:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FQ2Dk-0005n9-90 for help-gnu-emacs@gnu.org; Sun, 02 Apr 2006 09:02:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FQ2Dg-0005ml-1w for help-gnu-emacs@gnu.org; Sun, 02 Apr 2006 09:02:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FQ2Df-0005mi-U0 for help-gnu-emacs@gnu.org; Sun, 02 Apr 2006 09:02:15 -0400 Original-Received: from [81.228.11.159] (helo=pne-smtpout2-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FQ2GU-0003Er-1z; Sun, 02 Apr 2006 09:05:10 -0400 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout2-sn1.fre.skanova.net (7.2.070) id 43F9B8E9009E3E71; Sun, 2 Apr 2006 15:02:12 +0200 User-Agent: Thunderbird 1.5 (Windows/20051201) Original-To: zedek@gnu.org In-Reply-To: <1143980402.192253.25161.nullmailer@totoz-linux> X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:34128 Archived-At: Xavier Maillard wrote: > From: Mathias Dahl > > Lennart Borgman writes: > > > How do I do this in Elisp? > > In the book Mastering Regular Expressions, there is a regexp covering > a full page (or was it more?) just for matching an e-mail > address. Good luck! ... :) > > Yeah, this is the longest regexp I have ever seen. Awesome ! > > Once again, good luck :) > > Xavier > For those who want to see the regexp a perl version is here: http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html