title: regex ip address in format of 192[.]168[.]1[.]1
body: <p>I got a task to match ip address in an article ,and some of these ip addresses in this article are in the format of </p>
  
  <pre><code>192.168.1.1
  </code></pre>
  
  <p>and others are like </p>
  
  <pre><code>192[.]168[.]1[.]2
  </code></pre>
  
  <p>I can match the former using the</p>
  
  <pre><code>ip_result = re.findall(r"(\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b)",string)
  </code></pre>
  
  <p>but i don't know how to match the ip address in such 192[.]168[.]1[.]2 format
  Thanks for any suggestion! </p>