Files
java-servers/servers/boe-server-case/src/test/java/com/xboe/AttachmentUrlTest.java

37 lines
1.4 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package com.xboe;
public class AttachmentUrlTest {
// public static String getNameStr(String name) {
// String first=name.replaceAll("\\(","");
// int index1=first.indexOf("");
// if(index1>0) {
// first=first.substring(0,index1);
// }
// return first;
// }
//
// public static void main(String[] args) throws Exception {
//// String fileUrl="http://bpm.boe.com.cn/portal/apps/com.awspaas.user.apps.showfj/temp/tylc07_boealfjdz/00002770-张玉欣-专利包质量基准.docx";
//// int urlLast=fileUrl.lastIndexOf("/");
////
//// String urlName=fileUrl.substring(urlLast+1);
////
//// fileUrl=fileUrl.substring(0, urlLast+1)+URLEncoder.encode(urlName, "UTF-8");
//// System.out.println(fileUrl);
//// fileUrl=fileUrl.replaceAll("\\+","%20");
//// System.out.println(fileUrl);
//
// String caseName="经营管理(一级、二级经营责任者撰写),战略预算(战略企划与执行、预算),投融资(投资管理、资金、股证)】,未匹配到专业分类【经营管理(一级、二级经营责任者撰写),战略预算(战略企划与执行、预算),投融资(投资管理、资金、股证)";
// System.out.println(caseName.replaceAll("\\(",""));
// System.out.println(AttachmentUrlTest.getNameStr(caseName));
// //替换英文的括号为中文的括号
// //caseName=caseName.replaceAll("(","");
//
//
//
// }
}