From python-list Fri Sep 22 15:22:21 2006 From: Sorin Schwimmer Date: Fri, 22 Sep 2006 15:22:21 +0000 To: python-list Subject: I need some help with a regexp please Message-Id: <20060922152221.27999.qmail () web56001 ! mail ! re3 ! yahoo ! com> X-MARC-Message: https://marc.info/?l=python-list&m=115893856623447 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============0373129451==" --===============0373129451== Content-Type: multipart/alternative; boundary="0-92968529-1158938541=:26661" --0-92968529-1158938541=:26661 Content-Type: text/plain; charset=ascii Content-Transfer-Encoding: quoted-printable Hi,=0A=0AMy $0.02:=0A=0Are.compile('^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*\.(\w{2= }|(com|net|org|edu|intl|mil|gov|arpa|biz|aero|name|coop|info|pro|museum))$'= )=0A=0AI picked it up from the Net, and while it may be not perfect (you've= got lots of reply's telling you why),=0Ait's good enough for me.=0A=0AGood= luck,=0ASorin=0A=0A=0A=0A --0-92968529-1158938541=:26661 Content-Type: text/html; charset=ascii Content-Transfer-Encoding: quoted-printable
Hi,

My $0.02:

re.compile('^\w+([\.-]?\w+= )*@\w+([\.-]?\w+)*\.(\w{2}|(com|net|org|edu|intl|mil|gov|arpa|biz|aero|name= |coop|info|pro|museum))$')

I picked it up from the Net, and while it= may be not perfect (you've got lots of reply's telling you why),
it's g= ood enough for me.

Good luck,
Sorin

--0-92968529-1158938541=:26661-- --===============0373129451== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- http://mail.python.org/mailman/listinfo/python-list --===============0373129451==--