title: Python filtering strings
body: <p>I´m trying to make a python script to rename the subtitles file (.srt) with the filename of the video file corresponding to that episode, so when I open it in VLC the subtitles are already loaded.</p>
  
  <p>So far I´ve succeeded in getting all the file names from the videos and subs into strings on two separate lists. Now I need to somehow pair the video string of episode 1 with the subtitle corresponding to the same episode.</p>
  
  <p>I´ve tried in lots of differents ways but I always,most with regular patterns, but none has worked. 
  Here´s an example of my code :</p>
  
  <pre><code>import glob 
  
  videoPaths = glob.glob(r"C:\Users\tobia_000\Desktop\BBT\Video\*.mp4")
  subsPaths = glob.glob(r"C:\Users\tobia_000\Desktop\BBT\Subs\*.srt") 
  #With glob I sort the filenames of video and subs in separate variables
  
  ep1 = []
  ep2 = []
  ep3 = []
  #etc..
  </code></pre>
  
  <p>This is how the videoPaths and subsPaths variables would look like with the files I have. I dont have them all yet.</p>
  
  <pre><code>videoPath = ["The.Big.Bang.Theory.S05E24.HDTV.x264-LOL.mp4",
  "The.Big.Bang.Theory.S05E19.HDTV.x264LOL.mp4",
  "The.Big.Bang.Theory.S05E21.HDTV.x264-LOL.mp4"]
  
  subsPath = ["The Big Bang Theory - 5x19 - The Weekend Vortex.720p HDTV.lol.en.srt",
  "The Big Bang Theory - 5x21 - The Hawking Excitation.HDTV.LOL.en.srt",
  "The Big Bang Theory - 5x24 - The Countdown Reflection.HDTV.LOL.en.srt"]
  </code></pre>