Page 1 of 1

Fetching multiple within same line

Posted: Mon Apr 10, 2000 4:39 pm
by Thunderstone




Hi,

I am using a recexpr directive with a TIMPORT expression to fetch data from an HTML document.

Is there any way to fetch multiple contents located on the same line ?

Example: The HTML code would read:


1: <font face=arial>
2: <td>News</td><td>Sports</td><td>Weather</td><td>exit</td>
3: </font>



News
Sports
Weather
exit



I think that recexpr only works from the very beginning of each line as opposed to the same repetetive structures somewhere in this line.


Can you suggest a solution to my problem ?

Best Regards

Robert Zrim



Fetching multiple within same line

Posted: Mon Apr 10, 2000 5:41 pm
by Thunderstone


recexpr is not inherently anchored to beginning of line.
If your data really is that simple, a recexpr of

recexpr >><td>=!</td>*</td>
field Col varchar 2

will grab each table column as a record and the column data will be
placed into the $Col variable.

If you still have problems, please be more specific about what you're
actually doing. Don't forget to <loop> over $Col if you're trying
to use it after <timport></timport> instead of between.