How do I check whether a value in a string is an IP address How do I check whether a value in a string is an IP address ruby ruby