A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2010-May/100255.html below:

[Python-Dev] Ask a question for a script about re.findall Modlue

[Python-Dev] Ask a question for a script about re.findall Modlue [Python-Dev] Ask a question for a script about re.findall ModlueLu, Hongchao (UI Health Care) luhon at healthcare.uiowa.edu
Sat May 22 01:32:23 CEST 2010
Hi All,

     I am working on a script to use re.findall,
But the result seems wield.

--------------------------------------------------------------------
import re
p=re.compile("\S+",re.M)

pirfile="""
>DL;mm9|
>DL;petMar1|
>DL;cavPor3|
>DL;mm9|:
"""

for m in p.findall(pirfile,re.M):
        print m

Results:

|
>DL;petMar1|
>DL;cavPor3|
>DL;mm9|

The first result is missing some characters, Could you explain why? Any
wrong with the script?

I tried Python2.4/2.6/2.7, the result is same.


Thank you.


Hongchao Lu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20100521/13941900/attachment.html>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4