Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- def auth(login):
- if re.match('^[a-zA-Z][a-zA-Z0-9\-\.]{0,19}(?<![\-\.])$', login):
- print('Login is correct')
- else:
- print('Login is incorrect')
- if __name__ == '__main__':
- auth(raw_input('Login:'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement