I have this code so far
data = ['fx_name_v002.1001.exr fx_name_v002.1016.exr', 'fx_name_v002.1002.exr fx_name_v002.1018.exr']
data.sort()
frames = []
def string_split(data):
for i in data:
print(i.split('.'))
I need to split the list like I have. Once the list is split I need to add the 1002, 1001, of the split ends into the empty list frames.
The end result should be frames = ['1001', '1002', 'etc']
The part im confused on is the loop and after i split the list how to append the 1001, 1002, etc into the empty frames list.
Edit 1: Solved
Edit 2: So now I've been trying to reverse engineer regex and do research. How would I get the first part of the string, everything before 1001, 1002, etc. into a different list?
1016and1018?