Skip to content

Instantly share code, notes, and snippets.

@crunchywelch
Created June 9, 2018 17:21
Show Gist options
  • Save crunchywelch/23861db47b68d23adbf422cfb6dd7563 to your computer and use it in GitHub Desktop.
Save crunchywelch/23861db47b68d23adbf422cfb6dd7563 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
import re, sys
regex = re.compile('^[A-Z]')
def is_upper_AZ(x):
return regex.match(x)
if is_upper_AZ(sys.argv[1]):
print('match')
else:
print('no match')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment