/**
* Try parsing Ipv4 address.
*/
String[] c;
if ( (c = word.split("\\.")).length == 4) {
r = new IpAddress(parseIntoArray(new byte[4], c, 10));
} else if ( (c = word.split(":")).length == 16) {
r = new IpAddress(parseIntoArray(new byte[16], c, 16));
} else if ( (c = word.split("-")).length == 6 || (c = word.split(":")).length == 6) {
r = new MacAddress(parseIntoArray(new byte[6], c, 16));
} else if (c.length > 1) { // Catch all. Allow any type of address separated :