Matching Character Ranges

https://www.hackerrank.com/challenges/matching-range-of-characters/problem?h_r=next-challenge&h_v=zen&h_r=next-challenge&h_v=zen

code:

import re

Regex_Pattern = r'^[a-z][1-9][^a-z][^A-Z][A-Z]'    # Do not delete 'r'.
print(str(bool(re.search(Regex_Pattern, input()))).lower())

posted on 2020-08-20 10:46  shenggong  阅读(98)  评论(0编辑  收藏  举报

导航