String CodeName = "工行4221187990890987"
Pattern code_Pattern = Pattern.compile("\\d+");
Pattern Name_Pattern = Pattern.compile("\\D+");Matcher code_matcher = code_Pattern.matcher(Code);
String code = "";
String name = "";
while (code_matcher.find())
{
code = code_matcher.group(0);
}
Matcher name_matcher = Name_Pattern.matcher(Name);
while (name_matcher.find())
{
name = name_matcher.group(0);
}