public static void main(String[] a) {

        String wpp = "select 1, ${mark} '``this is, `/message22` special mark`\" this is ${mark1} special mark\"' `/message` ${mark} ";

        String pp = "((?=([^\\\"]*\\\"[^\\\"]*\\\")*[^\\\"]*$)(?=([^\\\']*\\\'[^\\\']*\\\')*[^\\\']*$))\\$\\{(.*?)}";

        String th = wpp.replaceAll(pp, "77777");
        System.out.println(th);
    }

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-16
  • 2021-09-10
  • 2022-02-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案