Page 1 of 1

Using Python 3.x to discover IP addresses in strings; what library and function can help return every possible IPv4 addr

Posted: Fri Jul 01, 2022 5:42 am
by answerhappygod
Using Python 3.x to discover IP addresses in strings; whatlibrary and function can help return every possible IPv4address?
a) json.dumps(mystring, indent=4)
b) ipaddress.ip_address(mystring)
c) mystring.find('ipaddr')
d) re.findall