How to get first 2 words?
<p>Let <code>data.title</code> be ABC XYZ PQRS - www.aaa.tld.
Output needs to be like this ABC+XYZ</p>

<p>i've tried this:</p>

<pre><code>var t = data.title.split(' ').join('+');
t = t.replace(/(([^\s]+\s\s*){1})(.*)/,"Unknown");
 $("#log").text(t);
</code></pre>