Matching {x} Repetitions

  • + 0 comments
    Regex_Pattern = r'^[a-zA-Z24680]{40}[13579\s]{5}$'
    
    import re
    
    print(str(bool(re.search(Regex_Pattern, input()))).lower())