regular expression to find ip address in python code example Example: regex to find ip address python r'(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})'