title: Python Splitting String List and Adding Segment to Empty List
body: <p>I have this code so far</p>
  
  <pre><code>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('.'))
  </code></pre>
  
  <p>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.</p>
  
  <p>The end result should be frames = ['1001', '1002', 'etc']</p>
  
  <p>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.</p>
  
  <p>Edit 1: Solved</p>
  
  <p>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?</p>