Created
August 27, 2014 21:53
-
-
Save famanson/bc1c8c0a8e347771e775 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
test_name = 'development-db-1481955f2b3' | |
pattern = r"(development-)?(db|es|web|imgrszr|geo)(\d+|-[a-z0-9]+)" | |
m = re.match(pattern, test_name) | |
type = m.group(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment