Re: Enabling the use of POSIX character classes in Python

2010-12-11 Thread Perry Johnson
On 2010-12-11, MRAB wrote: > On 11/12/2010 17:33, Perry Johnson wrote: >> Python's re module does not support POSIX character classes, for >> example [:alpha:]. It is, of course, trivial to simulate them using >> character ranges when the text to be matched uses the ASCII character >> set. Sadly,

Re: Enabling the use of POSIX character classes in Python

2010-12-11 Thread Martin v. Loewis
Am 11.12.2010 18:33, schrieb Perry Johnson: > Python's re module does not support POSIX character classes, for > example [:alpha:]. It is, of course, trivial to simulate them using > character ranges when the text to be matched uses the ASCII character > set. Sadly, my problem is that I need to pro

Re: Enabling the use of POSIX character classes in Python

2010-12-11 Thread MRAB
On 11/12/2010 17:33, Perry Johnson wrote: Python's re module does not support POSIX character classes, for example [:alpha:]. It is, of course, trivial to simulate them using character ranges when the text to be matched uses the ASCII character set. Sadly, my problem is that I need to process Uni

Enabling the use of POSIX character classes in Python

2010-12-11 Thread Perry Johnson
Python's re module does not support POSIX character classes, for example [:alpha:]. It is, of course, trivial to simulate them using character ranges when the text to be matched uses the ASCII character set. Sadly, my problem is that I need to process Unicode text. The re module has its own charact