fork download
  1. import re
  2. res = re.sub(r'\d+', lambda x: x.group(0).zfill(5), 'hello120_c')
  3. print(res)
Success #stdin #stdout 0.01s 9016KB
stdin
Standard input is empty
stdout
hello00120_c