public static boolean looksLikeBluetoothAddress(String s){
  return Pattern.matches("^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$",s);
}

public static boolean looksLikeBluetoothAddress ( String s ) { return Pattern . matches ( "^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$" , s ) ; }
sanity check a string for whether it looks basically like a bt mac . just regexes the string , looking for 6 groups of hex digits deparated by : or - . case insensitive .
