![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
正则表达式
正则表达式
courage(●'◡'●)
作者很勤快,什么都没留下
展开
-
正则表达式去空格
/** * 正则表达式去空格 */ @Test public void regexTheBlankSpace() { String str = " 12 3 "; String s = str.replaceAll("\\s*|\\t|\\r|\\n", ""); System.out.println(s); }原创 2021-03-31 15:11:25 · 242 阅读 · 0 评论 -
正则表达式去空格
/** * 正则表达式去空格 */ @Test public void regexTheBlankSpace() { String str = " 12 3 "; String s = str.replaceAll("\\s*|\\t|\\r|\\n", ""); System.out.println(s); }原创 2021-02-13 16:44:56 · 528 阅读 · 0 评论 -
正则表达式去html标签
/** * 正则表达式去html */ @Test public void regexTest() { String str = "<span id=\"_calculateTextWidth\" style=\"visibility: hidden; font-size: 16px; display: inline-block; position: absolute; left: -100%; top: -100%;\">离线留言<...原创 2021-02-13 16:35:06 · 77 阅读 · 0 评论