And run using:
java webDL webpage regEx
Where webpage is the url of the webpage you want to search and regEx is the regular expression to search for in link names.
For example, the command:
java webDL http://www.google.com/ gif
Will save Google's logo.gif to the saved directory.
java webDL http://www.babyanimalz.com/ "small.*jpg"
Will save all the thumbnails at Baby Animalz.com to the saved directory.
This program will save any kind of file (jpg, gif, html, avi, mp3, anything) from any webpage.
Note: if java has a problem with connecting to url's, you may have to change your java.policy file to allow this.