title: Recognizing and replacing parts of a string in java 7
body: <p>I want to replace a part of a string with another string.  For example, a string comes in, and it contains <code>meat</code>, but I want it to change that <code>meat</code> to <strong><code>vegetable</code></strong>.  I know I can do this with the following statement.</p>
  
  <p><code>str = str.replaceAll("meat", "vegetable");</code> </p>
  
  <p>However, I need to have the exact capitalization.  I'm looking for a way to do this no matter what letters are upper or lowercase in the example <code>meat</code>.</p>
  
  <p>My application is a filter for Minecraft.  Either swears, or just customizing the menu.  Like I'd like to replace every instance of the word <code>minecraft</code>, no matter the capitalization, to say <code>Best game Ever!!</code>.</p>
  
  <p>I have modded it so that it can recognize and replace specific capitalizations, but that is very limiting.</p>
  
  <p>I hope I have supplied enough info so that someone can help me with this.</p>