vbrtrmn has asked for the wisdom of the Perl Monks concerning the following question:
I've been meditating on this problem for some time now, but have come to no enlightenment. So, I have come to receive wisdom from the great monestary.
I am trying to get the paths and filenames of includes from a line of HTML. For example:
<b>here lies my HTML</b><!--#include virtual="/inculde/somedir/somefil +e.html" --> more HTML here followed by another inclued <!--#include v +irtual="/include/somedir/somefile.html" --> end of HTML is here
The HTML may contain one or more includes. I understand how to cut up the file using regular expressions and split(). I am unsure about how to do this with an unknown number of includes.
I was thinking about using HTML::Parse, but our security "force" will not allow my team to add anything to their server.
TIA
--
initiate paul
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTML INCLUDES
by chromatic (Archbishop) on Apr 30, 2001 at 20:02 UTC | |
by vbrtrmn (Pilgrim) on Apr 30, 2001 at 23:07 UTC | |
|
Re: HTML INCLUDES
by the_slycer (Chaplain) on Apr 30, 2001 at 18:45 UTC | |
|
Re: HTML INCLUDES
by DrZaius (Monk) on Apr 30, 2001 at 18:49 UTC | |
by astanley (Beadle) on Apr 30, 2001 at 19:08 UTC |