diff --git a/ip_processor.py b/ip_processor.py deleted file mode 100644 index 1c8e689..0000000 --- a/ip_processor.py +++ /dev/null @@ -1,10 +0,0 @@ -import re - -def process_ip_file(file_content: str) -> list: - ip_pattern = r'\b(?:\d{1,3}\.){3}\d{1,3}\b' - ips = re.findall(ip_pattern, file_content) - return [ip for ip in ips if validate_ip(ip)] - -def validate_ip(ip: str) -> bool: - parts = ip.split('.') - return len(parts) == 4 and all(0 <= int(part) < 256 for part in parts) \ No newline at end of file