[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] v2 Fixed gen_win.py to display Serf library version#

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Mon, 14 Sep 2009 04:07:36 +0300 (IDT)

Edmund Wong wrote on Mon, 14 Sep 2009 at 08:49 +0800:
> That is a point. Regexes isn't my strong point. So would the
> following suffice?
>
> maj_t = re.compile(r'SERF_MAJOR_VERSION(\s+)(\d+)')
>

Yes, but you don't need the first pair of parentheses, since you aren't
interested either in capturing the whitespace and or in the "grouping"
semantics of parentheses.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2394398
Received on 2009-09-14 03:07:45 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.