日期:2014-05-20 浏览次数:20931 次
String test = "==xxx==yyyy===mm===nn==ll==hh==...";
String pattern = "(?i)([a-z]+)\\s*={2,}\\s*([a-z]+)";
Matcher m = Pattern.compile(pattern).matcher(test);
while(m.find())
{
System.out.println(m.group(1) + " 对应: " + m.group(2));
}