title: How to parse USER-AGENT field in http header using regex?
body: <p>I want to parse some information from the <code>User-Agent:</code> HTTP header. The problem is that I'm getting two <code>User-Agent:</code> HTTP headers in the same HTTP Request:</p>
  
  <pre><code>CONNECT www.facebook.com:443 HTTP/1.1
  Host: www.facebook.com
  Proxy-Connection: keep-alive
  User-Agent: Mozilla/5.0 (http://iim.com/a.jph) AppleWebKit/536.6 (KHTML, like Gecko) Chrome/20.0.1092.
  CONNECT www.facebook.com:443 HTTP/1.1
  Host: www.facebook.com
  Proxy-Connection: keep-alive
  User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.6 (KHTML, like Gecko) Chrome/20.0.1092.
  CONNECT www.facebook.com:443 HTTP/1.1
  </code></pre>
  
  <p>I want the regex to match the non-http portion e.g <strong>Windows NT 6.1; WOW64</strong>. The flow analyzer software I'm using java regex engine.</p>
  
  <p><strong>My attempts</strong></p>
  
  <pre><code>User-Agent:\s+.*?\((.*?)\)
  </code></pre>
  
  <p>Its matching both; I want to skip http portion of it.</p>