如何获取Href值路径并将其存储在HTML内容的String中

时间:2022-01-06 20:53:46

I want get all href value \\192.168.1.102\\Data\ACT\OTHERACTS\HTMLFILES\2009\ftn2csdiv2.htm in String

我想在字符串中获取所有href值\\ 192.168.1.102 \\ Data \ ACT \ OTHERACTS \ HTMLFILES \ 2009 \ ftn2csdiv2.htm

1 个解决方案

#1


0  

If your path is like \\SERVER\directory\file.html you could treat it as a normal file path and not URL.

如果您的路径类似于\\ SERVER \ directory \ file.html,则可以将其视为普通文件路径而不是URL。

An answer that covers reading text files in Java: Reading a plain text file in Java

答案涵盖了用Java读取文本文件:用Java读取纯文本文件

#1


0  

If your path is like \\SERVER\directory\file.html you could treat it as a normal file path and not URL.

如果您的路径类似于\\ SERVER \ directory \ file.html,则可以将其视为普通文件路径而不是URL。

An answer that covers reading text files in Java: Reading a plain text file in Java

答案涵盖了用Java读取文本文件:用Java读取纯文本文件