Droptext.cc – Free Anonymous Text Hosting

Share your text data anonymously and free



import re


def main():
print(validate(input("IPv4 Address: ")))


def validate(ip):
if re.fullmatch(r"^((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d).?\b){4}$", ip):
return True
return False


if __name__ == "__main__":
main()



Views: 35, posted on: 2022-08-12