Finding Peoples' Names in Files

Francesco Guerrieri f.guerrieri at
Thu Oct 11 17:50:02 CEST 2007

On 10/11/07, brad <byte8bits at> wrote:
> cokofreedom at wrote:
> > On Oct 11, 5:22 pm, brad <byte8b... at> wrote:
> >> Crazy question, but has anyone attempted this or seen Python code that
> >> does? For example, if a text file contained 'Guido' and or 'Robert' and
> >> or 'Susan', then we should return True, otherwise return False.
> >
> > Can't you just use the string function .findall() ?
> >
> I mean *any* possible person's name... I don't *know* the names
> beforehand :)

"I cannot combine some characters


      which the divine Library has not foreseen and which in one of
its secret tongues do not contain a terrible meaning. No one can
articulate a syllable which is not filled with tenderness and fear,
which is not, in one of these languages, the powerful name of a god."

Jorge Luis Borges, The Library of Babel

More information about the Python-list mailing list