As I'm really noob using regex, please could you help me to use "sub" to change te numbers of these expressions:
(?<=&AFL-\d\d-)(\d+) Will match the digits you want to replace, using a positive lookbehind, which ensures
&AFL-XX- is there, but does not match them.
Combine this with re.sub()
re.sub(r"(?<=&AFL-\d\d-)(\d+)", string_to_fix, digits_you_want)