Java grabs web page pictures in detail. Java grabs web site pictures using regular expressions
•
Java
Use java to capture all pictures on the web page:
Use two regular expressions:
1. Regular matching of img tags in HTML: < img* src=(.*?) [^>]*?>
2. Regular matching of HTTP path in Src in img tag: http: \ "? (. *?) (\"|>|\\s+)
realization:
The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码