regular expression help [port]

Leith Parkin leithp at
Sun Sep 15 11:27:01 EDT 2002

Here is what i use

import re
def valid(email):
        x = 
}$", email);        if x == None:
                return 0;
                return 1;

Sorry about the formatting errors


On Sun, 15 Sep 2002 09:56:38 GMT
":B nerdy" <thoa0025 at> wrote:

> Greetings, this is a regular expression for an email address
> "^[a-z0-9_]+@[a-z0-9\-]{2,}\.[a-z0-9\-\.]{2,}$"
> i wish to valid a variable against this string. would someone be so kind
> to supply a few lines of code to do this?
> cheers

It is Texas law that when two trains meet each other at a railroad
each shall come to a full stop, and neither shall proceed until the other
has gone.

More information about the Python-list mailing list