title: Match ip address using regex
body: <p>I'm trying to match a simplified version of IP addresses (I believe this pattern should match all IP addresses and then some things that aren't IP addresses, but that's not really important.) I'm using this syntax in Python:</p>
  
  <pre><code>'([0-9]{1,3}\.){3}[0-9]{1,3}'
  </code></pre>
  
  <p>This, however, matches "127.", for example. As far as I can tell it's interpreting what I've provided as a list of patterns rather than a single one. What am I missing?</p>
  
  <p>UPDATE: Yes, sorry everyone, I had a typo. I fixed it.</p>
  
  <p>Everyone is saying the pattern as-is works perfectly, but I'm not getting that. Maybe my issue lies elsewhere:</p>
  
  <pre><code>        matches = regex.findall(line)
          for match in matches:
              matchList.add(label + match)
  </code></pre>
  
  <p>If I use the pattern '('\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}' instead (same thing, I just repeated, this works perfectly and gives a full IP address. However, if I use the pattern above, it instead gives '195.'</p>
  
  <p>If I put a paren around this expression to get '((\d{1,3}.){3}\d{1,3})', label + match gives me the error 'cannot concatenate string and tuple objects'</p>