| User: editor -- 2010-02-21 << 426 428 >> |
| Hits: 5805 |
| Type: Text file parser |
| Search all Text file parser examples |
| Description: |
| How to extract tables from html files into csv file automatically? I have some html files downloaded from website, that has some tables inside it, all tables is begin with a <strong>xxxx</strong> tag, and followed by a <table xxx>xxxxxxxxxx</table> |
| Input Sample: |
| <html> ... <strong>some title</strong> <table xxx> <tr xxx><td xxx>data11</td><td xxx>data12</td></tr> <tr xxx><td xxx>data21</td><td xxx>data22</td></tr> </table> |
| Output Sample: |
| some title data11,data12, data21,data22, |
| Answer: |
| Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
| 1. ctrl-o open source html file 2. ctrl-h open replace dialog * in 'search for pattern', enter: |