title: Coloring text using regular expressions in HTML
body: <p>I want to convert the following text using regular expression such that text inside <code>^text^</code> is replaced by the text inside some HTML tags. (inside <code>&lt;font color='red'&gt;</code>and <code>&lt;/font&gt;</code></p>
  
  <p>Example:</p>
  
  <pre><code>Input Text: Please select ^Continue^ to proceed with your call or ^Exit^ to call
  
  Output Text: Please select &lt;font color='red'&gt;Continue&lt;/font&gt; to proceed with your call or &lt;font color='red'&gt;Exit&lt;/font&gt; to call
  </code></pre>
  
  <p>Is it possible to achieve above using regular expressions in javascript?</p>