J
Justin To
Hi, I had a question about parsing just one line at a time beforehand
and now I'm working on a program to parse multiple items on each
line-something like the following:
name, age, gender
Bob, 32, M
Stacy, 14, F
...
...
How do I parse 'Bob', knowing it's the first element on the line, '32'
is the second, 'M' is the last...I've been reading about regular
expressions. Is this the best way to solve this problem? And how exactly
do you use them?
Thanks!!
and now I'm working on a program to parse multiple items on each
line-something like the following:
name, age, gender
Bob, 32, M
Stacy, 14, F
...
...
How do I parse 'Bob', knowing it's the first element on the line, '32'
is the second, 'M' is the last...I've been reading about regular
expressions. Is this the best way to solve this problem? And how exactly
do you use them?
Thanks!!