Hi All,
I'm trying to create regular expression that filters from the following partial text:
amd64 build of software 1:0.98.10-0.2svn20090909 in archive
what I want to extract is:
software 1:0.98.10-0.2svn20090909
How can I do this?? I've been trying and this is what I have so far:
p = re.compile('([a-zA-Z0-9\-\+\.]+)\ ([0-9\:\.\-]+)')
iterator = p.finditer("amd64 build of software 1:0.98.10-0.2svn20090909 in archive")
for match in iterator:
print match.group()
with result:
software 1:0.98.10-0.2
(svn20090909
is missing)
Thanks a lot.