title: remove words that begin with a !
body: <p>In a line, I want to remove any WORD that begins with a <code>!</code> (negation mark).</p>
  
  <p>Can any one help me with the regular expression that I need to use for this in Java?</p>
  
  <pre><code>String line = "hello world hello2 !xxx hello3, %643,!xxxxxxx. world5, !";
  String pure = line.replaceAll("?", "");
  </code></pre>
  
  <p>I want to remove all <code>!xxx</code> in that example.</p>
  
  <p>Thanks!</p>