Matching Anything But a Newline

  • + 6 comments

    This didn't work for me in python2. Adding (^..$) passed all tests:

    ^.{3}\..{3}\..{3}\..{3}$
    

    It seems this problem requires an exact matching for the entire string.