Matching Anything But a Newline

Sort by

recency

|

399 Discussions

|

  • + 0 comments

    My regex:

    ^((?:[^\n]{3}.){3}(?:(?:[^\n]){3}))$

  • + 0 comments

    ^(.{3}(.)){3}.{3}$

  • + 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.

  • + 0 comments

    You can use the regex ^(.?[^\n]{3}){4}$.

  • + 0 comments

    I don't understand the definition of this task click here">.