怎么用java实现复杂字符串的查找替换啊?把下面的代码中一段复杂字符转为空格。.................需要替换的字符串................
<html>
</head>
<title>管理系统</title>
<link rel="stylesheet" href="/chinataxskskj/common/f1.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" marginwidth="0" leftmargin="0" topmargin="0" background="/chinataxskskj/images/back.gif" marginheight="0">.................原字符串................
<html>
</head>
<title>管理系统</title>
<link rel="stylesheet" href="/chinataxskskj/common/f1.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" marginwidth="0" leftmargin="0" topmargin="0" background="/chinataxskskj/images/back.gif" marginheight="0"><style type="text/css">
<!--
.font_j2 { font-size: 12px; color: #666666}
.fj_1 {
font-size: 12px;
color: #FFFFFF;
}
.style1 {color: #000000}
.style2 {
color: #FF0000;
font-weight: bold;
}
.style3 {color: #666666}-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<html>
</head>
<title>管理系统</title>
<link rel="stylesheet" href="/chinataxskskj/common/f1.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" marginwidth="0" leftmargin="0" topmargin="0" background="/chinataxskskj/images/back.gif" marginheight="0">.................原字符串................
<html>
</head>
<title>管理系统</title>
<link rel="stylesheet" href="/chinataxskskj/common/f1.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" marginwidth="0" leftmargin="0" topmargin="0" background="/chinataxskskj/images/back.gif" marginheight="0"><style type="text/css">
<!--
.font_j2 { font-size: 12px; color: #666666}
.fj_1 {
font-size: 12px;
color: #FFFFFF;
}
.style1 {color: #000000}
.style2 {
color: #FF0000;
font-weight: bold;
}
.style3 {color: #666666}-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
解决方案 »
- 一个很奇怪的问题,同样的代码JCreator中可以运行JBuilder中确报错请大侠帮忙
- 求助:关于HashMap get()返回为空
- 各位帮我看看结果应该是多少?恳请帮我详解一下,谢谢~!
- 将一个Jframe窗口弹出到最前面,如果已经存在或者最小化了,下次调用也让它弹出到最前面,
- 关于jdbc数据库开发
- Object存储数组的问题
- JCreator关于源文件和类文件存放的问题?高手请进!
- 怎样用java做一些和操作系统力气比较紧密的工作??泣跪求解!!!!!
- 初学者问题:Tomcat中beans 缺省目录在那儿?
- 师傅们,帮我看看这段代码把,我用jb运行时他只向数据库中添加了两条记录。
- 请问如何在swing中的图像上画矩形?
- String a = "hello";如何打印出a的address
<style>应放在<head>中,具体哪里无所谓,就放在第一个(替换<head>)或者最后一个(替换</head>)
其次,<script>需要自动运行,但是可能<body>的onload已经有了,而且你的<script>最后有非function代码,加载到此处即会运行,故而索性放到最后,即替换</body>即可