title: Parsing Snort Alert File with Regex
body: <p>I'm trying to use regex in Python to parse out the source, destination (IPs and ports) and the time stamp from a snort alert file. Example as below:</p>
  
  <pre><code>03/09-14:10:43.323717  [**] [1:2008015:9] ET MALWARE User-Agent (Win95) [**] [Classification: A Network Trojan was detected] [Priority: 1] {TCP} 172.16.116.194:28692 -&gt; 205.181.112.65:80
  </code></pre>
  
  <p>I have a regex for the IP, but it doesn't fire correctly because of the port in the IP. How can I get the port separate from the IP? </p>
  
  <pre><code>^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$
  </code></pre>