unicode "em space" in regex
Fredrik Lundh
fredrik at pythonware.com
Sun Apr 17 09:30:17 EDT 2005
Xah Lee wrote:
> "Regular expression pattern strings may not contain null bytes, but can
> specify the null byte using the \number notation."
>
> What is meant by null bytes here? Unprintable chars??
no, null bytes. "\0". "\x00". ord(byte) == 0. chr(0).
> and the "\number" is meant to be decimal?
octal. this is explained on the "Regular Expression Syntax" page.
> and in what encoding?
null byte encoding? you're confused.
</F>
More information about the Python-list
mailing list