This isn't a question directly related to DBMan, but it will affect how quickly I can process my old records to make the flat file for DBMan...
I have a guestbook script (Matt's CGI Guestbook) which adds entries to an .html file like so (it is all one line):
06/03/99 23:03 <a href="mailto:rusty55@prodigy.net">rusty55@prodigy.net</a> Colleyville TX USA<br><b>SGT></b> <b>Friese,</b> <b>James</b> 6026 73/77 MCRD San Diego Platoon 2029 Jun 73<p>
For the flat file I want it to look like this:
06/03/99;23:03;rusty55@prodigy.net;Colleyville;TX;USA;SGT;Friese;James;6026;73/77;MCRD San Diego;Platoon 2029;Jun 73
Since a lot of you seem to know what the heck you're doing with Perl, how can I parse each line then "print" it back out to a file to look like the one above?
Any help would be greatly appreciated. I have been manually going through each line (30,000 of them)!
AJ
TheFew.com
www.thefew.com
[This message has been edited by TheFew (edited May 01, 2000).]
[This message has been edited by TheFew (edited May 01, 2000).]
I have a guestbook script (Matt's CGI Guestbook) which adds entries to an .html file like so (it is all one line):
06/03/99 23:03 <a href="mailto:rusty55@prodigy.net">rusty55@prodigy.net</a> Colleyville TX USA<br><b>SGT></b> <b>Friese,</b> <b>James</b> 6026 73/77 MCRD San Diego Platoon 2029 Jun 73<p>
For the flat file I want it to look like this:
06/03/99;23:03;rusty55@prodigy.net;Colleyville;TX;USA;SGT;Friese;James;6026;73/77;MCRD San Diego;Platoon 2029;Jun 73
Since a lot of you seem to know what the heck you're doing with Perl, how can I parse each line then "print" it back out to a file to look like the one above?
Any help would be greatly appreciated. I have been manually going through each line (30,000 of them)!
AJ
TheFew.com
www.thefew.com
[This message has been edited by TheFew (edited May 01, 2000).]
[This message has been edited by TheFew (edited May 01, 2000).]