title: How can I find the IP address in a string
body: <pre><code>tekst= "asdadsasdas 192.168.1.1 asdasdadasdasd 10.22.10.5asfasfaff 172.10.5.1safafa"
  import re
  szukane = r'\d{1,3}.+'
  znalezione = re.search(szukane, tekst)
  
  if znalezione:
      co= znalezione.group()
      print(co)
  </code></pre>
  
  <p>I'm looking to extract the IP address but after running the above code I get:</p>
  
  <pre><code>192.168.1.1 asdasdadasdasd 10.22.10.5asfasfaff 172.10.5.1safafa
  </code></pre>
  
  <p>Why Is it not working, what should I change?</p>