If you definitely have to combine regular expressions and arithmetic operations, choose a language where the regular expression's replacement parameter can be a callback function. perl
Perl, Ruby, JavaScript and ruby would be the easiestPython are such languages:
bash-4.2$ echo 12 | perl -pe 's/[0-9]*\d+/$&+3/e'
15
bash-4.2$ echo 12 | ruby -pe '$_.sub!(/[0-9]*\d+/){|s|s.to_i+3}'
15
bash-4.2$ echo 12 | js -e 'print(readline().replace(/\d+/,function(s){return parseInt(s)+3}))'
15
bash-4.2$ echo 12 | python -c 'import re;print re.sub("\d+",lambda s:str(int(s.group(0))+3),raw_input())'
15