Bret
08-07-2008, 07:18 PM
I need to do some text parsing, pretty basic stuff.
ie.
some crap at the top
ID: 135 V: 1
ID: 1 V:1
ID: 12 V:2
ID: 41 V:2
few more different rows at the bottom id like to parse
----
Ideally it would be from a web form post but parsing from a text file work as well. I am going to be inserting it into a mysql/sqllite database.
I know of some ways to do it, ive search around, some good info, some outdated.
Wanted to know if someone had a good starting point or some suggestions. I can prolly figure it out using some random technique or class or something but I wanted to post and see if someone could point be in a good direction so I dont waste too much time dicking around.
php would prolly be ideal but im up for whatever is easiest and fits my needs would work.
think I will be parsing some xml as well, so any pointers for that would be helpful
ie.
some crap at the top
ID: 135 V: 1
ID: 1 V:1
ID: 12 V:2
ID: 41 V:2
few more different rows at the bottom id like to parse
----
Ideally it would be from a web form post but parsing from a text file work as well. I am going to be inserting it into a mysql/sqllite database.
I know of some ways to do it, ive search around, some good info, some outdated.
Wanted to know if someone had a good starting point or some suggestions. I can prolly figure it out using some random technique or class or something but I wanted to post and see if someone could point be in a good direction so I dont waste too much time dicking around.
php would prolly be ideal but im up for whatever is easiest and fits my needs would work.
think I will be parsing some xml as well, so any pointers for that would be helpful