Matching Anything But a Newline

  • + 0 comments

    Shouldn't it be: ^\.{3}(\..{3}){3}$ because you want to match "..." followed by "\..." 3 times?

    However, something like ^(\.?.{3}){4}$ would also match "..." repeated 4 times, e.g. "abcabcabcabc"? Unless I just misunderstood the question.