Forum Moderators: open

Message Too Old, No Replies

Extracting html tags from local file

Trying to find a software to do this.

         

eflouret

6:49 pm on Mar 27, 2003 (gmt 0)

10+ Year Member



Hello,

I have hundred of pages from which I would like to extract the <title> and <a href> tags with the text enclosed, and discard the rest. The result can be saved anywhere (txt, xsl, or whatever).

Is there any software/shareware that can deal with this.

This should be done locally, so server side scripting won't work (well, unless I upload my files and the script don't stress my server).

Any input will be helpful.

Best regards,

Enrique

toadhall

10:12 pm on Mar 27, 2003 (gmt 0)

10+ Year Member



Enrique,

Edit Plus has a powerful "find in file" search feature...

Search > Find in Files... > (dialog box)

Search in all open files -or- specify the file type (*.html for instance) and the folder containing the files.

It yields the file path, line number, character number, and the full line the target appears on.

In your case, search for <title> and <a href (leave the tag open).

To copy the contents of the output window (the found lines), right click and choose "Copy All". That's about the only unintuitive part of the procedure.

Hope this does the job for you.

T