2023年5月17日

Java split方法一个或多个特殊字符分割

摘要: public static void main(String[] args) { String s = "ab|cd|ef"; //String s = "ab;cd,ef"; //String[] split = s.split(";|,"); String[] split = s.split(" 阅读全文

posted @ 2023-05-17 10:36 多言 阅读(500) 评论(0) 推荐(0) 编辑

2023年4月18日

匹配标的符号的正则表达 字符串截取到第一位标点符号

摘要: [\\.,。()()::] 阅读全文

posted @ 2023-04-18 16:03 多言 阅读(72) 评论(0) 推荐(0) 编辑

不规则格式进行文字识别

摘要: public static void main(String[] args) throws Exception{ String strText = "申请人:张三,男,汉族,1999年9月9日生,身份证号:123456789012345678,住址:测试地址8幢8单元8号,联系方式:028—1234 阅读全文

posted @ 2023-04-18 15:59 多言 阅读(23) 评论(0) 推荐(0) 编辑

Java 多个相同关键字进行文字识别

摘要: public static void main(String[] args) throws Exception{ String strText = "被申请人:第一家测试有限公司。 住所地:第一家测试有限公司地址,统一社会信用 代码:123456789。 联系电话:1111. 被申请人:第二家测试有 阅读全文

posted @ 2023-04-18 15:41 多言 阅读(39) 评论(0) 推荐(0) 编辑

Java中实现String字符串用逗号隔开

摘要: public static void main(String[] args) throws Exception{ String strText = "421542"; String information = ""; int start = 0; int end = 1; String digit 阅读全文

posted @ 2023-04-18 15:24 多言 阅读(306) 评论(0) 推荐(0) 编辑

2022年3月17日

Java 向文档固定位置填入信息

摘要: 准备word里面根据需要设置好用于填充信息的位置大小 下载工具 Adobe Acrobat DC 需要自己选择a56爆大奖在线娱乐框为需要填充二维码的定好位置,然后另存为pdf 代码实现如下 package com.ygx.construction.controller; import java.io.ByteAr 阅读全文

posted @ 2022-03-17 17:13 多言 阅读(831) 评论(0) 推荐(0) 编辑

2021年10月25日

json 转换实体对象

摘要: import javax.servlet.http.HttpServletRequest; import com.aliyuncs.utils.StringUtils;import com.sinosoft.cms.entity.CoreOrganization; import net.sf.jso 阅读全文

posted @ 2021-10-25 15:25 多言 阅读(288) 评论(0) 推荐(0) 编辑

集合中随机取一个值

摘要: List<实体> sirList = testDao.querysirList(test);//根据test查询 Setup rir = new Setup(); int size = sirList.size(); for(int i = 0;i<size;i++){ Random random 阅读全文

posted @ 2021-10-25 14:51 多言 阅读(95) 评论(0) 推荐(0) 编辑

2021年9月22日

js 获取地址第1或2个斜杠后的内容或地址前一部分

摘要: var value = "https://www.baidu.com/20210922/95b22ab5034b2d0f.jpg";const str = value.split("https://"); //https://进行分割, const index = str[1].indexOf("/ 阅读全文

posted @ 2021-09-22 14:28 多言 阅读(3358) 评论(0) 推荐(0) 编辑

2021年7月15日

list中的数据用string接收

摘要: List<String> testList=new ArrayList<>(); testList.add("a"); testList.add("b"); testList.add("c"); StringBuilder sb = new StringBuilder(); boolean flag 阅读全文

posted @ 2021-07-15 15:27 多言 阅读(355) 评论(0) 推荐(0) 编辑

导航