public static void main(String[] args) {
        String regex = "(?<=[\\u4e00-\\u9fa5A-Za-z])(?=[0-9])|(?<=[0-9])(?=[\\u4e00-\\u9fa5A-Za-z])";

        String input = "大床1.8米";

        String result = input.replaceAll( regex, " " );

        System.out.println(result);
    }

大床 1.8 米

 

相关文章:

  • 2022-12-23
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-08
相关资源
相似解决方案