title: What is the Java equivalent to this preg_replace?
body: <pre><code>&lt;?php
      $str = "word &lt;a href=\"word\"&gt;word&lt;/word&gt;word word";
      $str = preg_replace("/word(?!([^&lt;]+)?&gt;)/i","repl",$str);
      echo $str;
      # repl &lt;word word="word"&gt;repl&lt;/word&gt;
  ?&gt;
  </code></pre>
  
  <p>source: <a href="http://pureform.wordpress.com/2008/01/04/matching-a-word-characters-outside-of-html-tags/" rel="nofollow noreferrer">http://pureform.wordpress.com/2008/01/04/matching-a-word-characters-outside-of-html-tags/</a></p>
  
  <p>Unfortunality my project needs a semantic libs avaliable only for Java...</p>
  
  <p>// Thanks Celso</p>