Page 1 of 1

Extract text between tags

Posted: Sun Mar 15, 2009 12:47 am
by canis
I have a lot of html files with similar structure:
<td align=right>numbers</td>

How to extract everything between tags to different files?
At this moment I know how to extract numbers between first pair of tags:

Extract lines matching [<td>47:28]
Remove HTML and XML
Remove blanks from Start of Line
Remove blanks from End of Line

I can't guess how to extract text between other pairs. Can anybody help?

Re: Extract text between tags

Posted: Mon Mar 16, 2009 9:38 pm
by DataMystic Support
Use perl pattern search/replace, find

Code: Select all

Action: Send var 1 to subfilter.

As a subfilter, add a Special\Secondary Output filter - directing output to the file you need.

Repeat these two steps for each section you need.