From 5e4d1aa4b27cfbcf1c4c8beb2ac05f3c7a0cf1bb Mon Sep 17 00:00:00 2001 From: zjh <1084500556@qq.com> Date: 星期二, 18 二月 2025 16:55:45 +0800 Subject: [PATCH] zjh20250218 --- ltkj-admin/src/test/java/zjhTest.java | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ltkj-admin/src/test/java/zjhTest.java b/ltkj-admin/src/test/java/zjhTest.java index 54c1c95..da7386c 100644 --- a/ltkj-admin/src/test/java/zjhTest.java +++ b/ltkj-admin/src/test/java/zjhTest.java @@ -129,9 +129,10 @@ // BigDecimal multiply = ordPrice.multiply((new BigDecimal("6.5").divide(BigDecimal.valueOf(10)))); // System.out.println(multiply); - String a="鎶楃敳鐘惰吅鐞冭泲鐧芥姉浣擄紙TGAb锛夋娴�,1111锛�2222銆�33333锛�555555:666666"; - String[] split = a.split(",|锛寍銆倈锛殀:"); - System.out.println(split); + String a="鐧界粏鑳�(闄旽R)(WBC)"; + String s = a.replaceAll("[锛�(][^锛�)]*[\u4e00-\u9fa5]+[^锛�)]*[锛�)]", "") + .replaceAll("[ 娴嬪畾妫�娴媇", ""); + System.out.println(s); } -- Gitblit v1.8.0