mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-16 06:16:51 +08:00
37 lines
1.4 KiB
Java
37 lines
1.4 KiB
Java
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("(","(");
|
||
//
|
||
//
|
||
//
|
||
// }
|
||
|
||
|
||
}
|