title: how to use Matcher.replaceAll in java?
body: <p>i have a file which contains <code>"(*"</code> and <code>"*)"</code>. i want to remove everything between this two char sequences.
  i used the following code but it didn't do anything with my string.</p>
  
  <pre><code>    String regex = "\\(\\*.*\\*\\)";
      Pattern pattern = Pattern.compile(regex);
      Matcher matcher = pattern.matcher(input);
      matcher.replaceAll("");
  </code></pre>
  
  <p>the 'input' is:</p>
  
  <pre><code>(* This program prints out a message. *)
  
  program is
  
    begin
      write ("Hello, world!");
    end;
  </code></pre>