title: Parse string for specific substring?
body: <p>I have a file with n amount of strings like this:</p>
  <pre><code>something.other.com - - [01/Jul/1995:00:00:12 -0400] &quot;GET /images/logosmall.gif HTTP/1.0&quot; 304 0  
  </code></pre>
  <p>I need to parse *.gif and HTTP status only - 304</p>
  <p>My approach is either first split the string into string arrays and look at the exact index. 6 for the path, 8 for status code. Then search 6 for .gif and copy the point from the last /. Or simply search for .gif in the whole string, make a new subtring from the begininng until the .gif then get substring from the last /
  It's not clean.
  Is there a regex expression for something like /*.gif that'll pick up logosmall.gif?</p>