I currently have a pattern substitution that does the following:
x = re.sub('(\d+)','\g<1>','100')
=> x = 100
I need to be able to divide the integer by 10 in the substitution as the pattern and substitution are inputs from database text fields (so I can't use code). Is there a way to do this so that => x = 10
Thanks, Richard