title: How to remove multiple special characters from a String without any inbuilt functions like replaceAll() for jdk 1.4 below
body: <p>Using the below function i am able to simply remove a single special character, need multiple types of them to be removed from a single String. </p>
  
  <pre><code>static public String replaceAll(String str, String replace, String replacement )  
  {       
  StringBuffer sb = new StringBuffer( str );  
  int firstOccurrence = sb.toString().indexOf( replace );  
  
  while( firstOccurrence != -1 )   
  {     
  sb.replace( firstOccurrence, firstOccurrence + replace.length(), replacement );  
           firstOccurrence = sb.toString().indexOf( replace );  
  }  
  
  return sb.toString();   
  } 
  </code></pre>
  
  <p>Needs this so it works below jdk 1.4 without all the inbuilt function like replaceAll()</p>
  
  <p>Thanks.</p>