On 29/11/06, Steve Nelson <[EMAIL PROTECTED]> wrote: > Hello, > > Is there a way to pull "strings" out of a word document? Not unlike > the way the UNIX command "strings" does?
Here's a crude attempt: >>> import string >>> s = file('myworddoc.doc').read() >>> t = ''.join(c for c in s if c in string.letters+string.digits+string.punctuation+string.whitespace) -- John. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor