What's wrong with my Python code. We have to find theregularexpression in Python My output should look like this
My IP address 128. 0. 0. 1
My IP address 53. 20. 62. 201
My code
ipAddresses = []
ipRegEx = re.compile(r\"\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}\")
   result = myRegEx.find all(Search Text)
   def Regular_expression(ipAddresses)
      for i in ipAddresses:
         print(i)
ipSearchResult = ipRegEx.search(line)
   if ipSearchResult != None andipSearchResult.group() not in ipAddresses:
      ipAddresses.append(ipSearchResult.group())
we have to use loop too.