title: Replace multiple characters in As3
body: <p>I faced difficulties to replace a string.</p>
  
  <pre><code>var expression:String = '2X3';
  var inString:String = expression;
  inString=inString.replace("÷","/");
  inString=inString.replace("X","*");
  trace('Result.....',inString);
  </code></pre>
  
  <p>Output:-
  Result.....2*3</p>
  
  <p>Its alright.
  But the problem was when i tried to give input as</p>
  
  <blockquote>
    <p>var expression:String = '2X3X3X4X5X6';</p>
  </blockquote>
  
  <p>output:-</p>
  
  <blockquote>
    <p>Result.....2*3X3X4X5X6</p>
  </blockquote>
  
  <p>But i need it in form of</p>
  
  <blockquote>
    <p>Result.....2*3*3*4*5*6</p>
  </blockquote>
  
  <p>and same for division.
  Thanks &amp; Regards</p>