Matching Anything But a Newline

Sort by

recency

|

397 Discussions

|

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

  • + 0 comments

    Shouldn't ruby code be using 'match?' instead of 'match'

  • + 0 comments

    /^(...\.?){4}$/