title: Regular Expression to search longest word in a string
body: <p>I have a string:</p>
  
  <pre><code>var str = "Lorem ipsum dolor sit amet, consectetur adipiscing elit";
  </code></pre>
  
  <p>Is there a way to find the longest word in a string using regex? This will prevent me to split the string into words and then looping through all of them.</p>
  
  <p>Possibly if I can use it in JavaScript as:</p>
  
  <pre><code>str.search(/regex/); // should return 28 (position of word 'consectetur')
  </code></pre>
  
  <p>Thanks.</p>