title: Nth word of a string using js Regex
body: <p>for this, the string is:</p>
  
  <pre><code>one two three four five six seven eight nine ten
  </code></pre>
  
  <p>how do you select the nth word in this string?</p>
  
  <p>a word in this case is a group of one or more characters, either preceded, succeeded, or surrounded by a whitespace.</p>