I have strings that look like:
set @s1 = '#12 + #13 - #14 * 3'
How can I find all the #XXX parts of the string and replace it so that the final string looks like:
hashf('12') + hashf('13') - hash('14') * 3
I tried it using cursors but I took too much time and for performance reasons I don't want to use them.
I tried also regex
. The pattern is "#\d+"
but how can I apply it in my case?