- The regex should allow any number of leading and trailing white spaces but only one white space is allowed between words
- The string should be between 1 and 32 characters long (excluding leading and trailing white spaces, but include white spaces between the words)
My regex so far does that, except it doesn't count the white spaces between the words
^[\s]*(?:[\w]{1}[\s]?){1,32}[\s]*$