package pt.iscte.dsi.utils; import pt.iscte.ci.metadata.ISCTE; @ISCTE(author = "Paulo Zenida") public class MacAddressUtils { public static boolean isValidMacAddress(final String address) { return address .matches("[0-9a-fA-F]{2}[:]{1}[0-9a-fA-F]{2}[:]{1}[0-9a-fA-F]{2}[:]{1}[0-9a-fA-F]{2}[:]{1}[0-9a-fA-F]{2}[:]{1}[0-9a-fA-F]{2}"); } }