s = 'abcde+3fghijkl-1mnopqr+12abcdefghijklmnoprstuvwxyz'
import re

def dump(match):
    start, end = match.span()
print(s[start:end + int(s[start + 1:end])])
regular expression that reference a match from earlier part of expression