I am trying to get the last number from this string from each line but my code is only able to get '25' instead. I want to get 15, 10, 5, 5, and 25.
import re
string = """
1073811-S0-A M3S FRT SUBFRAME MNT FRT INR LH 15
1073851-S0-A M3S REAR QUARTER INNER LH 10
1080023-S0-C M3 ASY, COWL SIDE, LH 5
1080024-S0-C M3 ASY, COWL SIDE, RH 5
1080473-S0-B M3 ASY, SHOTGUN TOWER, LH 25
"""
qty = re.findall(r'\d{1,3}$', string)
print(qty)