title: Replace number into character from string using python
body: <p>I have a string like this</p>
  
  <pre><code>        convert_text = "tet1+tet2+tet34+tet12+tet3"
  </code></pre>
  
  <p>I want to replace digits into character from above string.That mapping list available separately.so,When am trying to replace digit 1 with character 'g' using replace like below</p>
  
  <pre><code>       import re
         convert_text = convert_text.replace('1','g')
         print(convert_text)
  </code></pre>
  
  <p>output is</p>
  
  <pre><code>      "tetg+tet2+tet34+tetg2+tet3"
  </code></pre>
  
  <p>How to differentiate single digit and two digit values.Is there is any way to do with Regexp or something else?</p>