Regex for one or more words separated by spaces
23:11 04 Aug 2014

I am looking for a regex where i have one or more words (possibly should cover alpha numeric also) separated by spaces (one or more spaces)

  1. " Test This stuff "
  2. " Test this "
  3. " Test "

Above are some examples of it

I wrote a regex to see what is repeating for #1

\s*[a-zA-Z]*\s*[a-zA-Z]*\s*[a-zA-Z]*\s*

so i wanted to do something like {3} for repeating section.

But it does not seem to work.. I cant believe it is this difficult.

(\s*[a-zA-Z]*){3}
regex