regex ping detection