Matching Anything But a Newline

  • + 0 comments
    regex_pattern = r"^...\....\....\....$"
    
    import re
    import sys
    
    test_string = input()
    
    match = re.match(regex_pattern, test_string) is not None
    
    print(str(match).lower())