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

2008-02-24 Thread Kent Johnson
, and then using int() on the string, but is there an easier way? > > John > > - Original Message > From: Kent Johnson <[EMAIL PROTECTED]> > To: John Gunderman <[EMAIL PROTECTED]> > Cc: tutor@python.org > Sent: Saturday, February 23, 2008 3:43:44 AM > Subje

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

2008-02-24 Thread Kent Johnson
John Gunderman <[EMAIL PROTECTED]> wrote: > I am parsing the output of the mork.pl, which is a DORK (the mozilla format) > parser. I don't know Perl, so I decided to write a Python script to do what I > wanted, which basically is to create a dictionary listing each site and its > correspon

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

2008-02-23 Thread R. Alan Monroe
> 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

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

2008-02-23 Thread Alan Gauld
"John Gunderman" <[EMAIL PROTECTED]> wrote >I am looking to parse a plaintext from a document. When you say "a document" what kind of document do you mean? Is the document also in plain text, like HTML, or is it a binary format like MS Word? > some of the words will be multiple digits or cha

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

2008-02-23 Thread Kent Johnson
John Gunderman wrote: > 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 s