basically in need that a whole string is a match if it has the following pattern:
DIGITS SPACE WORDS(min. 1 to a max of 3.) SPACE
So the following string will be a match:
30 boxes 30 boxes 30 boxes boxes boxes
But the following won't match:
30 boxes 30 boxes boxes boxes boxes 30 boxes
NOTE: the last character in a row is a space
I have the following regex up until now:
(\d+)(\s)(([a-zA-Z]+)(\s)){1,3}
^(?:\d+(?:\s+[a-zA-Z]+){1,3}\s*)+$, see demo