import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Test3 {
public static void main(String[] args) {
String s = "11.2美元34人民币";
String attr[] = new String[10];
Pattern p = Pattern.compile("[\\u4e00-\\u9fa5]+|\\d+\\.\\d+|\\d+");
Matcher m = p.matcher( s );
int index = 0;
while ( m.find() ) {
attr[index++] = m.group();
}
for(int j=0;j<index;j++){
System.out.println("attr["+ j + "] = " + attr[j]);
}
}
}