You are viewing a single comment's thread. Return to all comments →
Shouldn't it be: ^\.{3}(\..{3}){3}$ because you want to match "..." followed by "\..." 3 times?
^\.{3}(\..{3}){3}$
"..."
"\..."
However, something like ^(\.?.{3}){4}$ would also match "..." repeated 4 times, e.g. "abcabcabcabc"? Unless I just misunderstood the question.
^(\.?.{3}){4}$
Seems like cookies are disabled on this browser, please enable them to open this website
Matching Anything But a Newline
You are viewing a single comment's thread. Return to all 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.