title: Regex to match all words except those in parentheses - javascript
body: <p>I'm using the following regex to match all words: </p>
  
  <pre><code>mystr.replace(/([^\W_]+[^\s-]*) */g, function (match, p1, index, title) {...}
  </code></pre>
  
  <p>Note that words can contain special characters like German Umlauts. 
  How can I match all words excluding those inside parentheses?</p>
  
  <p>If I have the following string:</p>
  
  <pre><code>here wäre c'è (don't match this one) match this
  </code></pre>
  
  <p>I would like to get the following output:</p>
  
  <pre><code>here
  wäre
  c'è
  match
  this
  </code></pre>
  
  <p>The trailing spaces don't really matter.
  Is there an easy way to achieve this with regex in javascript?</p>
  
  <p>EDIT:
  I cannot remove the text in  parentheses, as the final string "mystr" should also contain this text, whereas string operations will be performed on text that matches. The final string contained in "mystr" could look like this:</p>
  
  <pre><code>Here Wäre C'è (don't match this one) Match This
  </code></pre>