a = element.split('.') if len(a) != 4: return False for x in a: if not x.isdigit() or x == '': return False i = int(x) if i < 0 or i > 255: return False return True
def iptest(element): a = element.split('.') if len(a) != 4: return False for x in a: if not x.isdigit() or x == '': return False i = int(x) if i < 0 or i > 255: return False return True
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)