文本处理的问题
发表于 : 2008-12-26 14:09
我有一个配置文件需要去掉注释.如下.红色的是我需要去掉的.去掉 <!-- 跟 --> 而不是 去掉 期间 的内容,就是这两个注释符号而且只是去掉这两个注释符号这个位置的行号是不固定的.请问.....
APR (HTTP/AJP) Connector: /docs/apr.html
Define a non-SSL HTTP/1.1 Connector on port 8080
-->
<!--
<Connector port="8080" address="${1111111111s}"
maxThreads="250" maxHttpHeaderSize="8192"
.
.
.
compressableMimeType="text/html,text/xml,text/javascript,application/x-javascript,application/xhtml+xml,application/javascr
ipt"/>
-->
<!-- Define a SSL HTTP/1.1 Connector on port 8443
This connector uses the JSSE configuration, when using APR, the
APR (HTTP/AJP) Connector: /docs/apr.html
Define a non-SSL HTTP/1.1 Connector on port 8080
-->
<!--
<Connector port="8080" address="${1111111111s}"
maxThreads="250" maxHttpHeaderSize="8192"
.
.
.
compressableMimeType="text/html,text/xml,text/javascript,application/x-javascript,application/xhtml+xml,application/javascr
ipt"/>
-->
<!-- Define a SSL HTTP/1.1 Connector on port 8443
This connector uses the JSSE configuration, when using APR, the