title: Is it possible to use OR condition/operator in replace function?
body: <p>I have simple String program in Java. I need to use replace() function. In which, I have to replace few words with the help of OR condition if they occur in the given String.</p>
  
  <pre><code>e.g. String s = "I am a boy";
  s = s.replace("I", "something"); //works ok
  s = s.replace("I | am", "something"); //wants to do it
  System.out.println(s);
  </code></pre>
  
  <p>I know programatically by coding own it is possible but just thought to place question here before going to final way.</p>
  
  <p>Thanks in advance.</p>