简体   繁体   中英

regular expressions in java

如何使用Java使用正则表达式提取网页中的链接(假设我将html页面作为文本文件)?

This previously posted question should help you

How to use regular expressions to parse HTML in Java?

Essentially you should really look at using a HTML parser

同意HTML解析器可以使您的生活更加轻松,如果您可以将其包含在内部版本中-过去我使用Jericho HTML解析器进行类似的操作...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM