nice.. you might want to check $longip in help file, it's more better for validating ip compared to $regex because \d+ detect more than 255