Python论坛  - 讨论区

标题:[python-chinese] ������������mail��ַ�

2006年09月07日 星期四 16:18

cry zyqmail在tom.com
星期四 九月 7 16:18:21 HKT 2006

kakaryan,您好!

>>> s = "    zzz在ddd.cn<zzz在ddd.cn%3C/TD%3E%3C/TR>>"
>>> s.lstrip("").strip().split("")[0]
'zzz在ddd.cn'
>>> 

在 2006-09-07 15:03:00 您写道:
>整理一个公司的员工邮件列表...
>偶环保..不制造垃圾邮件...
>
>在06-9-7,Gavin <gavin在sz.net.cn> 写道:
>>
>>
>>
>> 准备搜集网页中的Email地址卖钱? :―)
>>
>>  ----- Original Message -----
>> *发件人:* kakaryan <kakaryan在gmail.com>
>> *收件人:* python-chinese在lists.python.cn
>> *发送时间:* 2006年9月7日 14:56
>> *主题:* [python-chinese] 请问如何提取文件中的email地址?
>>
>>
>> 地址是放在一个网页文件中的
>> 都是这样的格式
>> xxx在ddd.com
>>   yyy在ddd.net<yyy在ddd.net%3C/TD%3E%3C/TR>>
>>      zzz在ddd.cn<zzz在ddd.cn%3C/TD%3E%3C/TR>>
>> 试过几个正则表达式都不能把邮件地址提取出来...
>> 请大家帮忙
>>
>> ------------------------------
>>
>> _______________________________________________
>> python-chinese
>> Post: send python-chinese在lists.python.cn
>> Subscribe: send subscribe to python-chinese-request在lists.python.cn
>> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
>> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>>
>>
>> _______________________________________________
>> python-chinese
>> Post: send python-chinese在lists.python.cn
>> Subscribe: send subscribe to python-chinese-request在lists.python.cn
>> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
>> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>>
>_______________________________________________
>python-chinese
>Post: send python-chinese在lists.python.cn
>Subscribe: send subscribe to python-chinese-request在lists.python.cn
>Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
>Detail Info: http://python.cn/mailman/listinfo/python-chinese

                    致
礼!

            cry
            zyqmail在tom.com



[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年09月07日 星期四 16:21

kakaryan kakaryan在gmail.com
星期四 九月 7 16:21:26 HKT 2006

лл...
ÎÒÒ²ÕÒµ½Ò»¸ö°ì·¨...
email.Utils.parseaddr()


2006/9/7, cry <zyqmail at tom.com>:
>
> kakaryan£¬ÄúºÃ£¡
>
> >>> s = "    zzz at ddd.cn<zzz at ddd.cn%3C/TD%3E%3C/TR>>"
> >>> s.lstrip("").strip().split("")[0]
> 'zzz at ddd.cn'
> >>>
>
> ÔÚ 2006-09-07 15:03:00 ÄúдµÀ£º
> >ÕûÀíÒ»¸ö¹«Ë¾µÄÔ±¹¤ÓʼþÁбí...
> >ż»·±£..²»ÖÆÔìÀ¬»øÓʼþ...
> >
> >ÔÚ06-9-7£¬Gavin <gavin at sz.net.cn> дµÀ£º
> >>
> >>
> >>
> >> ×¼±¸ËѼ¯ÍøÒ³ÖеÄEmailµØÖ·ÂôÇ®£¿ £º¨D£©
> >>
> >>  ----- Original Message -----
> >> *·¢¼þÈË:* kakaryan <kakaryan at gmail.com>
> >> *ÊÕ¼þÈË:* python-chinese at lists.python.cn
> >> *·¢ËÍʱ¼ä:* 2006Äê9ÔÂ7ÈÕ 14:56
> >> *Ö÷Ìâ:* [python-chinese] ÇëÎÊÈçºÎÌáÈ¡ÎļþÖеÄemailµØÖ·£¿
> >>
> >>
> >> µØÖ·ÊÇ·ÅÔÚÒ»¸öÍøÒ³ÎļþÖеÄ
> >> ¶¼ÊÇÕâÑùµÄ¸ñʽ
> >> xxx at ddd.com
> >>   yyy at ddd.net<yyy at ddd.net%3C/TD%3E%3C/TR>>
> >>      zzz at ddd.cn<zzz at ddd.cn%3C/TD%3E%3C/TR>>
> >> ÊÔ¹ý¼¸¸öÕýÔò±í´ïʽ¶¼²»ÄÜ°ÑÓʼþµØÖ·ÌáÈ¡³öÀ´...
> >> Çë´ó¼Ò°ïæ
> >>
> >> ------------------------------
> >>
> >> _______________________________________________
> >> python-chinese
> >> Post: send python-chinese at lists.python.cn
> >> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> >> Unsubscribe: send unsubscribe to
> python-chinese-request at lists.python.cn
> >> Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >>
> >>
> >> _______________________________________________
> >> python-chinese
> >> Post: send python-chinese at lists.python.cn
> >> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> >> Unsubscribe: send unsubscribe to
> python-chinese-request at lists.python.cn
> >> Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >>
> >_______________________________________________
> >python-chinese
> >Post: send python-chinese at lists.python.cn
> >Subscribe: send subscribe to python-chinese-request at lists.python.cn
> >Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> >Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>                    ÖÂ
> Àñ£¡
>
>            cry
>            zyqmail at tom.com
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://python.cn/pipermail/python-chinese/attachments/20060907/a238e12c/attachment-0001.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年09月07日 星期四 16:43

Gavin gavin在sz.net.cn
星期四 九月 7 16:43:33 HKT 2006

>>> import re
>>> p='<[^>]+>([^].*@[^<]+)?>>> s= ' sdkl xxx在ddd.com'
>>> r=re.compile(p)
>>> l=r.search(s)
>>> l.groups()
('xxx在ddd.com',)

>>> s='  yyy在ddd.net<yyy在ddd.net%3C/TD%3E%3C/TR>>'
>>> l=r.search(s)
>>> l.groups()
('  yyy在ddd.net',)


----- Original Message ----- 
发件人: "cry" <zyqmail在tom.com>
收件人: <python-chinese在lists.python.cn>
发送时间: 2006年9月7日 16:18
主题: Re: Re: [python-chinese] ȡļеemail ַ


kakaryan,您好!

>>> s = "    zzz在ddd.cn<zzz在ddd.cn%3C/TD%3E%3C/TR>>"
>>> s.lstrip("").strip().split("")[0]
'zzz在ddd.cn'
>>> 

在 2006-09-07 15:03:00 您写道:
>整理一个公司的员工邮件列表...
>偶环保..不制造垃圾邮件...
>
>在06-9-7,Gavin <gavin在sz.net.cn> 写道:
>>
>>
>>
>> 准备搜集网页中的Email地址卖钱? :―)
>>
>>  ----- Original Message -----
>> *发件人:* kakaryan <kakaryan在gmail.com>
>> *收件人:* python-chinese在lists.python.cn
>> *发送时间:* 2006年9月7日 14:56
>> *主题:* [python-chinese] 请问如何提取文件中的email地址?
>>
>>
>> 地址是放在一个网页文件中的
>> 都是这样的格式
>> xxx在ddd.com
>>   yyy在ddd.net<yyy在ddd.net%3C/TD%3E%3C/TR>>
>>      zzz在ddd.cn<zzz在ddd.cn%3C/TD%3E%3C/TR>>
>> 试过几个正则表达式都不能把邮件地址提取出来...
>> 请大家帮忙
>>
>> ------------------------------
>>
>> _______________________________________________
>> python-chinese
>> Post: send python-chinese在lists.python.cn
>> Subscribe: send subscribe to python-chinese-request在lists.python.cn
>> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
>> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>>
>>
>> _______________________________________________
>> python-chinese
>> Post: send python-chinese在lists.python.cn
>> Subscribe: send subscribe to python-chinese-request在lists.python.cn
>> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
>> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>>
>_______________________________________________
>python-chinese
>Post: send python-chinese在lists.python.cn
>Subscribe: send subscribe to python-chinese-request在lists.python.cn
>Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
>Detail Info: http://python.cn/mailman/listinfo/python-chinese

                    致
礼!

            cry
            zyqmail在tom.com


_______________________________________________
python-chinese
Post: send python-chinese在lists.python.cn
Subscribe: send subscribe to python-chinese-request在lists.python.cn
Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
Detail Info: http://python.cn/mailman/listinfo/python-chinese

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年09月07日 星期四 17:01

Gavin gavin在sz.net.cn
星期四 九月 7 17:01:47 HKT 2006

修正如下:

>>> s= ' sdkl xxx在ddd.com'
>>> p='<[^>]+>([^]+@[^<]+)'
>>> r=re.compile(p)
>>> l=r.search(s)
>>> l.groups()
('xxx在ddd.com',)
>>> s= ' sdkl xxx在ddd.com '
>>> l=r.search(s)
>>> l.groups()
('xxx在ddd.com ',)


----- Original Message ----- 
发件人: "Gavin" <gavin在sz.net.cn>
收件人: <python-chinese在lists.python.cn>
发送时间: 2006年9月7日 16:43
主题: Re: [python-chinese] ȡļеemail ַ


>>> import re
>>> p='<[^>]+>([^].*@[^<]+)?>>> s= ' sdkl xxx在ddd.com'
>>> r=re.compile(p)
>>> l=r.search(s)
>>> l.groups()
('xxx在ddd.com',)

>>> s='  yyy在ddd.net<yyy在ddd.net%3C/TD%3E%3C/TR>>'
>>> l=r.search(s)
>>> l.groups()
('  yyy在ddd.net',)


----- Original Message ----- 
发件人: "cry" <zyqmail在tom.com>
收件人: <python-chinese在lists.python.cn>
发送时间: 2006年9月7日 16:18
主题: Re: Re: [python-chinese] ȡļеemail ַ


kakaryan,您好!

>>> s = "    zzz在ddd.cn<zzz在ddd.cn%3C/TD%3E%3C/TR>>"
>>> s.lstrip("").strip().split("")[0]
'zzz在ddd.cn'
>>> 

在 2006-09-07 15:03:00 您写道:
>整理一个公司的员工邮件列表...
>偶环保..不制造垃圾邮件...
>
>在06-9-7,Gavin <gavin在sz.net.cn> 写道:
>>
>>
>>
>> 准备搜集网页中的Email地址卖钱? :―)
>>
>>  ----- Original Message -----
>> *发件人:* kakaryan <kakaryan在gmail.com>
>> *收件人:* python-chinese在lists.python.cn
>> *发送时间:* 2006年9月7日 14:56
>> *主题:* [python-chinese] 请问如何提取文件中的email地址?
>>
>>
>> 地址是放在一个网页文件中的
>> 都是这样的格式
>> xxx在ddd.com
>>   yyy在ddd.net<yyy在ddd.net%3C/TD%3E%3C/TR>>
>>      zzz在ddd.cn<zzz在ddd.cn%3C/TD%3E%3C/TR>>
>> 试过几个正则表达式都不能把邮件地址提取出来...
>> 请大家帮忙
>>
>> ------------------------------
>>
>> _______________________________________________
>> python-chinese
>> Post: send python-chinese在lists.python.cn
>> Subscribe: send subscribe to python-chinese-request在lists.python.cn
>> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
>> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>>
>>
>> _______________________________________________
>> python-chinese
>> Post: send python-chinese在lists.python.cn
>> Subscribe: send subscribe to python-chinese-request在lists.python.cn
>> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
>> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>>
>_______________________________________________
>python-chinese
>Post: send python-chinese在lists.python.cn
>Subscribe: send subscribe to python-chinese-request在lists.python.cn
>Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
>Detail Info: http://python.cn/mailman/listinfo/python-chinese

                    致
礼!

            cry
            zyqmail在tom.com


_______________________________________________
python-chinese
Post: send python-chinese在lists.python.cn
Subscribe: send subscribe to python-chinese-request在lists.python.cn
Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
Detail Info: http://python.cn/mailman/listinfo/python-chinese
_______________________________________________
python-chinese
Post: send python-chinese在lists.python.cn
Subscribe: send subscribe to python-chinese-request在lists.python.cn
Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
Detail Info: http://python.cn/mailman/listinfo/python-chinese

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年09月07日 星期四 17:13

Gavin gavin在sz.net.cn
星期四 九月 7 17:13:45 HKT 2006

²Çd•4SI,Ç]u×(š×L?ÓF–³=ù¬ÀgO~®·œ¢jb•êe®Çš­Èl–
躛1Ç]uÊ&²Çd•4SI,Ç]u×(™ÉíwôÃý4e®Çš­Èl–
躛1Ç]uÊ&r;{

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号