I would have thought it can be done with regex by a multi-stage process and string arrays:
- first extract the lines <tr .. </tr>
- then for each line, extract the fields <td .. </td>
- then for each field, replace all tags < .. > with ""
- then output the fields to a CSV (or just use the data directly from the fields() string array)
Another way is to just use the standard b4x string functions, and:
- for printable text not within < >, just emit the text
- for </td, emit a comma
- for </tr, emit a newline
For both methods, you might need to extract the table first, ie, <table .. </table>
If I have time tonight, I'll whip up some code.