How to replace all numbers in a string with custom string in python? : <p>I want to replace all the numbers in a given string with <code>Mat(number)</code>.For example the string <code>A*256+B*12+C*256</code> after conversion must look like this <code>A*Mat(256)+B*Mat(12)+C*Mat(256)</code>.<strong>How can I perform this in python 3?</strong>.</p>
