title: how to use javascript regex, get first word and last word from html
body: <p>javascript how to preg match first word and last word from html?</p>
  
  <p>for example, in the below sentence, I want get words <code>The</code> and <code>underway</code>. Thanks.</p>
  
  <pre><code>&lt;p&gt;The Stack Overflow 2011 community moderator election is underway&lt;/p&gt;
  //should consider the different html tags.
  </code></pre>