title: regex replace all ignore case
body: <p>How do I ignore case in the below example?</p>
  
  <pre><code>outText = inText.replaceAll(word, word.replaceAll(" ", "~"));
  </code></pre>
  
  <p>Example:</p>
  
  <p><strong>Input:</strong></p>
  
  <pre><code>inText = "Retail banking Wikipedia, the free encyclopedia Retail banking "
         + "From Wikipedia. retail banking industry."
  
  word   = "retail banking"
  </code></pre>
  
  <p><strong>Output</strong></p>
  
  <pre><code>outText = "Retail~banking Wikipedia, the free encyclopedia Retail~banking " +
            "From Wikipedia. retail~banking industry."
  </code></pre>