using the following code im getting all the url in a site
while( $html =~ m/<A HREF=\"(.*?)\"/g ) {
print "$1\n";
}
which gives me all the URL . but my question is i wanna extract only the url ends with
1) .pdf
or
2) .doc
for example
http://nc.casaforchildren.org/files/public/site/jobs/CSO.pdf
can any one help me thanks .