title: Character replacement
body: <p>I have the following string value.</p>
  
  <pre><code>var stringVal = [4|4.6]^Size{1}~[6];
  </code></pre>
  
  <p>I want to replace everything before the first <code>^</code> occurrence with <code>[1|5]</code> how do I go about doing this?</p>
  
  <p>Thanks in advance. </p>