JAVA正则表达式学习2
文章目录
实例三:
数据提取
要求:从一段HTML代码中提取出所有的email地址和tag中的链接地址
public class HtmlTest {
public static void main(String[] args) {
String htmlText = "<html>"
+ "163test\n"
+ "163news\n"
+ "163lady\n"
+ "
实例三:
数据提取
要求:从一段HTML代码中提取出所有的email地址和tag中的链接地址
public class HtmlTest {
public static void main(String[] args) {
String htmlText = "<html>"
+ "163test\n"
+ "163news\n"
+ "163lady\n"
+ "
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论