in reply to greping url from HTML file

Some of the material at Working with HTML might be helpful.

You may also find some of the similar previous posts helpful. You can find them using search. See Searching-PerlMonks for help with this.