update 优化文档拆分序号获取
This commit is contained in:
@@ -1053,6 +1053,10 @@ public class FileSpiltService {
|
||||
int index = matcher.start();
|
||||
String startDigit = arr.substring(0, index);
|
||||
startDigit = startDigit.replaceAll(" ", "");
|
||||
//如果以数字开头就删除英文
|
||||
if (startDigit.matches("\\d.*")){
|
||||
startDigit = startDigit.replaceAll("\\p{Alpha}","");
|
||||
}
|
||||
if(StringUtils.isNotBlank(startDigit)) {
|
||||
return startDigit.replaceAll("\t", "").replaceAll("\b", "")
|
||||
.replaceAll("\"", "").replaceAll("\'", "");
|
||||
|
||||
Reference in New Issue
Block a user