比如 double型 1.009的十六进制为1.024dd2f1a9fbe怎么再找到一个包含1A的浮点数?
位运算?
这个得用穷举法,用曙光服务器来计算吧
转16进制后使用正则表达式匹配
String str = "1.024dd2f1a9fbe1a"; Matcher matcher = Pattern.compile("1a").matcher(str); if (matcher.find()){ System.out.println("匹配到内容包含1a"); }