实例代码:

    public static void main(String[] args) {
        String str="11000.00元";
        Pattern pattern = Pattern.compile("(\\d+(\\.\\d+)?)");
        Matcher matcher = pattern.matcher(str);
        if (matcher.find()) {
            System.out.println(matcher.group(1));
        }        
    }

 

相关文章:

  • 2022-12-23
  • 2021-09-30
  • 2021-12-23
  • 2022-12-23
  • 2022-02-16
  • 2021-08-11
猜你喜欢
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2021-07-23
  • 2022-02-16
  • 2021-11-11
相关资源
相似解决方案