title: regex to match any character or none?
body: <p>I have the two following peices of strings;</p>
  
  <pre><code>line1 = [16/Aug/2016:06:13:25 -0400] "GET /file/ HTTP/1.1" 302 random stuff ignore
  
  line2 = [16/Aug/2016:06:13:25 -0400] "" 400 random stuff ignore
  </code></pre>
  
  <p>I'm trying to grab these two parts;</p>
  
  <pre><code>"GET /file/ HTTP/1.1" 302
  "" 400
  </code></pre>
  
  <p>Basically any character in between the two "" or nothing in between "". So far I've tried this;</p>
  
  <pre><code>regex_example = re.search("\".+?\" [0-9]{3}", line1)
  print regex_example.group()
  </code></pre>
  
  <p>This will work with line1, but give an error for line2. This is due to the '.' matching any character, but giving an error if no character exists. </p>
  
  <p>Is there any way for it to match any character or nothing in between the two ""?</p>