E-Mail Parsing

Merrigan charl.loubser at gmail.com
Thu Dec 13 02:16:01 EST 2007


Hi There,

I am writing a script to administer my E-Mail Server. The One thing
I'm currently struggling with is kind of Parsing the E-Mail adress
that I supply to the script.

I need to get the username (The part BEFORE the @ sign) out of the
address so that I can use it elsewhere. The problem I have with this
is that both the domain, and the username are variable lenghts and
that I have no idea how to split the two parts.

Is there any way that I can do this?

Thank ye very much.

 -- Merrigan



More information about the Python-list mailing list