title: Extract all words from string except words in square brackets
body: <p>Again I'm totally stuck in creating a regular expression.</p>
  
  <p>I have a string pattern like:</p>
  
  <p><code>str = '    wordA   []  wordAB [xyz]     wordABC     [x]  '</code></p>
  
  <p>So there is always a word followed by something in brackets <code>[ ... ]</code> or empty brackets <code>[]</code>. The length of the words, the leading and trailing white spaces and the number of chars inside the brackets is random. Also random is how often this sequence is repeated.</p>
  
  <p>I'd like to extract just the words without brackets:</p>
  
  <pre><code>output = 
  
      'wordA'    'wordBC'    'wordABC'
  </code></pre>
  
  <p>I think the problem are the square brackets as they are functional characters for regular expressions. I tried something like</p>
  
  <pre><code>output = regexp(str,'^\[.+\]$','split')
  </code></pre>
  
  <p>and variations without success.</p>
  
  <p>Any hints?</p>