title: Java regex to strip out XML tags is not working
body: <p>I am trying to remove any XML tags from a Java string. The way I see it, something is an XML tag if it follows one or both of the following forms:</p>
  
  <ul>
  <li><code>&lt;*&gt;*&lt;*/*&gt;</code>, such as <code>&lt;fizz&gt;buzz&lt; /fizz&gt;</code>; or</li>
  <li><code>&lt;*/*&gt;</code>, such as <code>&lt; fizz /&gt;</code></li>
  </ul>
  
  <p>My regex is simple:</p>
  
  <pre><code>String tagful = "Hello &lt;fizz&gt;buzz&lt;/fizz&gt;Regexes!";
  String tagless = tagful.replaceAll("&lt;*&gt;*&lt;*/*&gt;", "");
  tagless = tagless.replaceAll("&lt;*/*&gt;", "");
  System.err.println("TAGLESS:\n\t" + tagless);
  </code></pre>
  
  <p>When I run this I get <code>Hello &lt;fizzbuzz&lt;/fizzRegexes!</code> as the output, whereas (if my XML-stripping code was correct), I should be getting <code>Hello Regexes!</code>. Where am I going astray?</p>
  
  <p><strong>Please note</strong>: I do not want to use any existing libraries; I am looking for a pure Java regex solution here. Thanks in advance!</p>