whoami? iam!
Michael Ellerman
michael at ellerman.id.au
Fri Dec 16 06:59:18 GMT 2005
On Fri, 16 Dec 2005 00:27, Nathaniel McCallum wrote:
> Thought this plugin (attached) may like to be included.
>
> Nathaniel
It might be nice to try and validate the input, to catch typos more than
anything. I have a script which uses the following regexps to check email
addresses, although I didn't write it so I can't vouch for it's correctness -
but it looks ok to me.
email_re = re.compile("[a-zA-Z0-9\.]+\@[a-zA-Z0-9\.]+")
email_name_re = re.compile("(\w|\s)+\<[a-zA-Z0-9\.]+\@[a-zA-Z0-9\.]+\>")
cheers
--
Michael Ellerman
IBM OzLabs
email: michael:ellerman.id.au
inmsg: mpe:jabber.org
wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)
We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051216/17495db9/attachment.pgp
More information about the bazaar
mailing list