- import re
- s = r'Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") \
- = "zlib", "..\third_party\zlib\zlib.vcxproj", "{57997958-0CDB-A2A6-B81A-C5CADFC6E484}"'
- m = re.match(r'[^,]+, "(..\\){1,2}third_party\\([a-zA-Z0-9-_]+)[^,]+, "{([a-zA-Z0-9-]+)}"',s)
- print m.group(2)
- print m.group(3)
- import re
- format = re.compile(r'remotes/origin/[0-9a-zA-Z]+_[0-9]+$')
- if format.search('remotes/origin/trunk_110'):
- print 'ok'