使用Pattern
// String _regexp = "[0-9]{12}/[0-9]{1,}";
// Pattern pattern = Pattern.compile(_regexp);// if(pattern.matcher(str_tranmemo).matches()){
// }
使用Pattern 字符串的matches()方法
// if(str_tranmemo.matches("[0-9]{12}/[0-9]{1,}")){
// }
使用Pattern
// String _regexp = "[0-9]{12}/[0-9]{1,}";
// Pattern pattern = Pattern.compile(_regexp);// if(pattern.matcher(str_tranmemo).matches()){
// }
使用Pattern 字符串的matches()方法
// if(str_tranmemo.matches("[0-9]{12}/[0-9]{1,}")){
// }
1719
1万+
3万+
1787

被折叠的 条评论
为什么被折叠?