Using RE to retrive an ID
Posted
by chrissygormley
on Stack Overflow
See other posts from Stack Overflow
or by chrissygormley
Published on 2010-06-10T13:54:20Z
Indexed on
2010/06/10
14:52 UTC
Read the original article
Hit count: 180
Hello, I am trying to use RE to match a changing ID and extract it. I am having some bother getting it working. The String is:
m = 'Some Text That exists version 1.0.41.476 Fri Jun 4 16:50:56 EDT 2010'
The code I have tried so far is:
r = re.compile(r'(s*\s*)(\S+)')
m = m.match(r)
Can anyone help extract this string.
Thanks
© Stack Overflow or respective owner