Re: [Tutor] ABout distinquishing elements in a string/regular expr

2006-09-07 Thread Kent Johnson
Xiao Yu Michael Yang wrote: > Hi tutors, > >I am currently working on a project that identifies languages of html > documents, using Python, of course. You might be interested in http://chardet.feedparser.org/ which seems to work directly on HTML. > Just wondering, given a string: > >

[Tutor] ABout distinquishing elements in a string/regular expr

2006-09-07 Thread Xiao Yu Michael Yang
Hi tutors, I am currently working on a project that identifies languages of html documents, using Python, of course. Just wondering, given a string: str = " title this is french 77 992 / " what is the python expression for: 1. r = return_anything_that's_within<> (str), i.e. it should giv