if(brand2.indexOf("(")>-1)//将括号中的内容也要提取
{
Pattern pattern = Pattern.compile("(?<=\\()(.+?)(?=\\))");
Matcher matcher = pattern.matcher(brand2);
while(matcher.find())
{
String englishBrand = matcher.group();
resultList.add(englishBrand.toUpperCase());
}
}
{
Pattern pattern = Pattern.compile("(?<=\\()(.+?)(?=\\))");
Matcher matcher = pattern.matcher(brand2);
while(matcher.find())
{
String englishBrand = matcher.group();
resultList.add(englishBrand.toUpperCase());
}
}