[Pyparsing] PyParsing and unicode
Brought to you by:
ptmcg
From: Jean-Paul C. <ex...@di...> - 2006-06-26 01:03:40
|
Hey, I'm wondering how to match any sequence of whitespace-separated characters, including non-ascii. For ASCII, I've just been using pyparsing.Word(alphanums) but this approach doesn't seem to work for unicode. Also, while trying to figure this out, I tried this: pyparsing.OneOrMore(pyparsing.NotAny(pyparsing.White())).parseString("hello") Running this goes into an infinite loop consuming all CPU resources. Not sure if this is a bug worth fixing in PyParsing but I thought I'd point it out. Jean-Paul |