会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Built with
cnblogs
•
source
{{ vm.header.title }}
{{ vm.header.subtitle }}
更多
{{ p.desc }}
{{ p.desc }}
{{ vm.post.title }}
📅 {{vm.post.desc.date}} 👁️ {{vm.post.desc.viewCount}} 💬 {{vm.post.desc.commentCount}}
{{ tag.desc }}
登录后才能查看或发表评论, 立即
登录
{{ post.title }}
📅 {{ post.desc.date }} 👁️ {{ post.desc.viewCount }} 💬 {{ post.desc.commentCount }}
阅读更多
{{ tag.desc }}
深水是沉默
别自制压力,我们没有必要跟着时间走, 只需跟着心态和能力走 随缘 尽力 问心无愧,其他的,交给天。
博客园
首页
新随笔
联系
订阅
管理
2020年12月1日
Java 替换String内a标签为指定标签,并提取内容
摘要: 近段时间遇到一个奇葩的需求,就是需要把富文本里面的a标签提取出来变成小程序的text的标签,然后就在网上找了一些正则来做匹配。 话不多说,直接干代码 public static void main(String[] args) { String content = "<p>asdfjklasjdfl
阅读全文
posted @ 2020-12-01 16:05 深水是沉默
阅读(1236)
评论(0)
推荐(0)
公告