Ouch. That is simple with .split
I must have got confused amongst
slice re etc. searching searching.
Thanks folks. Painless.
--
http://mail.python.org/mailman/listinfo/python-list
Adam wrote:
> How is best to extract word strings from a
> line = infile.readline()
>
> I wish to quickly check the first word of
> each line of a text file.
>
> Indeed, How do I break a lineinput() line
> into component words (separate by spaces etc) ?
>
> Should I be looking at;
> Re Pa
Hi !
Look : .split()
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
How is best to extract word strings from a
line = infile.readline()
I wish to quickly check the first word of
each line of a text file.
Indeed, How do I break a lineinput() line
into component words (separate by spaces etc) ?
Should I be looking at;
Re Parser Slice StringIO ?
Any help