title: How to remove all lines that start with a certain string using java regex?
body: <p>There is a text of about 1000 characters.</p>
  
  <pre><code>String text = "bla bla..................
                 .........................
                 .........................
                 file.....................
                 .........................
                 .........................
                 file.....................
                 .........................
  </code></pre>
  
  <p>Some lines  start with a word "file". How can I remove <strong>ALL</strong> such lines?
  Here is what I tried</p>
  
  <pre><code>text = text.replaceAll("file.*?//n", ""); 
  </code></pre>