francisxavier1234 has asked for the wisdom of the Perl Monks concerning the following question:
I have a directory of html files. Each file has multiple references to txt files. I need to save all the filenames being referenced in them for further processing.
html file: ------------------my @txtFiles = grep{/\.txt/}<$inputfile> ;
------------ I need abc1.txt and abc2.txt in @txtFiles;<a href= abc1.txt target="_blank">bla bla bla<a href= abc2.txt target= +"_blank"><b><Font face= "verdana" size = "0.5"> Click for snap shot < +/font></b></a></p></TD><TD> <Font face= "verdana" size = "2" >Report +is generated with selected values sorted in Ascending order</Font></T +D><TD align="center"> <Font face= "verdana" size = "2" </TD><TD align +="center"> <Font face= "verdana" size bla bla bla...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Get a list of all txt file names listed in a html file
by davido (Cardinal) on Jan 31, 2014 at 06:10 UTC | |
by francisxavier1234 (Initiate) on Jan 31, 2014 at 06:55 UTC | |
|
Re: Get a list of all txt file names listed in a html file
by Not_a_Number (Prior) on Jan 30, 2014 at 21:08 UTC | |
|
Re: Get a list of all txt file names listed in a html file
by 2teez (Vicar) on Jan 30, 2014 at 21:40 UTC | |
|
Re: Get a list of all txt file names listed in a html file
by CountZero (Bishop) on Jan 30, 2014 at 21:52 UTC |