java.util.regex.PatternSyntaxException: Syntax error U_REGEX_RULE_SYNTAX near index 1

java.util.regex.PatternSyntaxException: Syntax error U_REGEX_RULE_SYNTAX near index 1

str =  bundle.getString("location").split("+");

 

改为

 

str =  bundle.getString("location").split("\\+");

 

或者

 

str =  bundle.getString("location").split("[+]");

你可能感兴趣的:(regex)