So... I have a HTML file with a table containing the data of about... 2k people. These data include (and are not restricted to) address, email, telephone, bank accounts, etc.
I need to throw all these data into a MySQL database. So far, my attempts were:
1) Place it all within a form tag and attempt to (jquery-)serialize it. Too big.
2) Find a pattern in the HTML structure so I can:
a) Write thousands of SQL insert queries or
b) Receive it within a server-side program.
Didn't find a pattern.
3) Simply access the containing database. Nope. All the data is here. Database is gone. Gone.
The file is about 46MB, and contains 1,086,177 lines altogether. There are blank lines within these. Because of this, simply attempting to open the file in Notepad++ takes about 5 seconds, running it in Chrome eats about 400MB RAM, and even VIM takes a while to run over it.
It's not quite that difficult, actually. I mean, there is a
<table align="center" width="100%">
<tbody>
on top of it... Problem is that all data, independently what or whom's, is merely separated by endless rows, such as
<tr>
<td nowrap="" align="right" valign="baseline">
<div align="right"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><font color="#FF0000">*</font>
Email:</font></div>
</td>
<td nowrap="" align="left" valign="baseline"><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#0000CC"><b>
<font color="#990000">email</font></b></font> </td>
<td nowrap="" align="right" valign="baseline"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">
__Password__: </font></td>
<td nowrap="" align="right" valign="baseline">
<div align="left">
****
</div>
</td>
</tr>
Any, any, any ideas at all are truly welcome.
EDIT: To make things clearer: I need to find a pattern. VIM/Notepad++ Find/Replace expressions to create something I can throw into a MySQL database somehow - includes SQL scripts, post-querystrings,etc.