I am try to replace below String
#cit {font-size:16pt; color:navy; text-align:center; font-weight:bold;}
和
#cit {字体大小:16pt; 红色; 文本对齐:居中;字体粗体:粗体;}
我正在为此编写 Java 代码
strbuf.toString().replaceAll(Pattern.quote("#cit {font-size:16pt; color:navy;
text-align:center; font-weight:bold;}"), "#cit {font-size:16pt; color:red;
text-align:center; font-weight:bold;}");
但是字符串没有被替换?请帮我