> +package org.jclouds.profitbricks.util;
> +
> +import java.util.regex.Pattern;
> +
> +public class MacAddresses {
> +
> + private static final String MAC_ADDR_FORMAT =
> "^([0-9a-f]{2}[:]){5}([0-9a-f]{2})$";
> + private static final Pattern MAC_ADDR_PATTERN =
> Pattern.compile(MAC_ADDR_FORMAT);
> +
> + public static boolean isMacAddress(String in) {
> + return MAC_ADDR_PATTERN.matcher(in).matches();
> + }
> +
> + public static void main(String[] args) {
> + System.out.println(isMacAddress("AA:BB:CC:DD:EE:FF".toLowerCase()));
> + }
Remove this method :)
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/139/files#r25347482