Prev: THANKS GOD! I GOT $2000 FROM PAYPAL....
Next: constructing and using large lexicon in a program
From: jhermann on 5 Aug 2010 06:07 On Aug 2, 7:34 pm, John Nagle <na...(a)animats.com> wrote: > >>> s2 = " HELLO THERE " > >>> kresplit4 = re.compile(r'\W+', re.UNICODE) > >>> kresplit4.split(s2) > ['', 'HELLO', 'THERE', ''] > > I still get empty strings. >>> re.findall(r"\w+", " a b c ") ['a', 'b', 'c']
First
|
Prev
|
Pages: 1 2 3 Prev: THANKS GOD! I GOT $2000 FROM PAYPAL.... Next: constructing and using large lexicon in a program |