Matching Zero Or More Repetitions

  • + 0 comments
    Regex_Pattern = r'^\d{2,}[a-z]{0,}[A-Z]{0,}$'	# Do not delete 'r'.
    
    import re
    
    print(str(bool(re.search(Regex_Pattern, input()))).lower())