regex problem

km srikrishnamohan at gmail.com
Wed Nov 22 14:41:39 EST 2006


Hi all,

line is am trying to match is
1959400|Q2BYK3|Q2BYK3_9GAMM Hypothetical outer membra    29.9    0.00011   1

regex i have written is
re.compile
(r'(\d+?)\|((P|O|Q)\w{5})\|\w{3,6}\_\w{3,5}\s+?.{25}\s{3}(\d+?\.\d)\s+?(\d\.\d+?)')

I am trying to extract 0.0011 value from the above line.
why doesnt it match the group(4) item of the match ?

any idea whats wrong  with it ?

regards,
KM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20061123/39c539ff/attachment.html>


More information about the Python-list mailing list