strReturn= sql.replaceAll("(&)|(
\\^)|(')|(/)|(;)|(:)|(_)|(%)|(\")|(\n)|(\\*)|(\\+)|(\\[)|(\\])|(\\})|(\\{)|(\\n)|(\\|)","");
public static String dealSql(String sql){
String strReturn="";
if (sql==null)
strReturn="";
else{
try{
strReturn= sql.replaceAll("(&)|(
\\^)|(')|(/)|(;)|(:)|(_)|(%)|(\")|(\n)|(\\*)|(\\+)|(\\[)|(\\])|(\\})|(\\{)|(\\n)|(\\|)","");
}catch(Exception e){
System.out.println(e.toString());
strReturn="";
}
}
return strReturn;
}
大盘预测
国富论
posted on 2007-08-16 18:10
华梦行 阅读(107)
评论(0) 编辑 收藏