我想从下面的字符串中删除每次出现的 (title) 。我该如何为此编写正则表达式?我尝试了如下的正则表达式,但它不起作用。
String ruler1="115.28(54)(title) is renumbered 115.363(title) and amended to read:";
Pattern rulerPattern1 = Pattern.compile("(.*)\\(title\\)(.*)", Pattern.MULTILINE);
System.out.println(rulerPattern1.matcher(ruler1).replaceAll(""));