I have an alphanumeric code that looks like:
"PRODUCTNAME600COUPON50"
where PRODUCTNAME
is a variable of inconsistent length
I want to be able to extract the integer values of the string into a list- in this case [600, 50]
.
I'm looking for a slick Pythonic way to do it- I started with this solution for finding the index of the first number within a string, but that falls short in this case.