| | |
| | | |
| | | |
| | | public static void main(String[] args) { |
| | | // BigDecimal ordPrice =new BigDecimal("13.05"); |
| | | // BigDecimal multiply = ordPrice.multiply((new BigDecimal("6.5").divide(BigDecimal.valueOf(10)))); |
| | | // System.out.println(multiply); |
| | | |
| | | String input = "1399168522"; // 输入字符串 |
| | | String input = "1.甲状腺双侧叶结节;体积增大,光点增粗,请结合临床2.双侧乳腺增生症3.右侧附件囊肿;盆腔少量积液"; |
| | | String s = "(\\d+[\\.、]\\s*)|[。]"; |
| | | System.out.println("jcycxmzz值为"+s); |
| | | // 使用正则分割:匹配 1. 1、(后面可以有空格),或中文句号“。” |
| | | String[] parts = input.split(s); |
| | | |
| | | boolean mobileNO = MatchUtils.isMobileNO(input); |
| | | System.out.println(mobileNO); // 输出结果 |
| | | System.out.println(!mobileNO); // 输出结果 |
| | | |
| | | if(!mobileNO){ |
| | | System.out.println(111); |
| | | for (String part : parts) { |
| | | String trimmed = part.trim(); |
| | | System.out.println(trimmed); |
| | | } |
| | | |
| | | // System.out.println(s); |
| | | } |
| | | |
| | | public static boolean isNumeric(String str) { |
| | | return str != null && str.matches("\\d+"); |
| | | } |
| | | |
| | | /** |
| | | * 执行生成 |