I want to write a regex that matches a string that counts 10 words, excluding the white spaces. The following
aaa ttt aaa a
bbbbb aazzz
a b c d e f g h i j
abcdefghij
should match the regex.
I also saw this answer, but it is with a certain string, not with a random one. What I tried so far
\s*[a-z]{10}$
gives me just those strings that ends with a string composed by 10 letters.
Can be this be achieved?