[Tutor] how to parse a multiple character words from plaintext

R. Alan Monroe amonroe at columbus.rr.com
Sat Feb 23 16:43:50 CET 2008


> I am looking to parse a plaintext from a document. However, I am
> confused about the actual methodology of it. This is because some of
> the words will be multiple digits or characters. However, I don't
> know the length of the words before the parse. Is there a way to
> somehow have open() grab something until it sees a /t or ' '?

If your file format is not too fancy, split() may be all you need.

Alan



More information about the Tutor mailing list