title: Regular expression to delete duplicated words?
body: <p>I use this to delete duplicated words (Notepad++ or Powergrep)
  <code>(\b\w+\b)\W+\1.</code> replace with <code>${1}</code>.
  How can this be changed to find nonconsecutive duplicated words <strong>in one line</strong> and delete second duplicated word?</p>
  
  <pre><code>Example
  word1, word2, word1, word3,
  Result
  word1, word2, word3,
  </code></pre>
  
  <p>Tried this but then it select both duplicated words and strings beetwen them.</p>
  
  <pre><code>(\b\w+\b)(.*?)\W+\1.
  </code></pre>