Use regexp to match IP addresses in log helper