=== modified file 'Features.txt' --- Features.txt 2010-02-17 12:22:14 +0000 +++ Features.txt 2010-02-21 14:44:13 +0000 @@ -61,7 +61,7 @@ regex.findall and regex.finditer support an 'overlapped' flag which permits overlapped matches Unicode escapes (#3665) - The Unicode escapes \uxxxx and \Uxxxxxxxx are supported. + The Unicode escapes \\uxxxx and \\Uxxxxxxxx are supported. Large patterns (#1160) Patterns can be much larger. @@ -94,23 +94,23 @@ Named groups can be named with (?...) as well as the current (?P...). Group references - Groups can be referenced within a pattern with \g. This also allows there to be more than 99 groups. + Groups can be referenced within a pattern with \\g. This also allows there to be more than 99 groups. Named characters - \N{name} + \\N{name} Named characters are supported. Unicode properties - \p{name} - \P{name} - Unicode properties are supported. \p{name} matches a character which has property 'name' and \P{name} matches a character which doesn't have property 'name'. + \\p{name} + \\P{name} + Unicode properties are supported. \\p{name} matches a character which has property 'name' and \\P{name} matches a character which doesn't have property 'name'. Posix character classes [[:alpha:]] Posix character classes are supported. Search anchor - \G + \\G A search anchor has been added. It matches at the position where each search started/continued and can be used for contiguous matches or in negative variable-length lookbehinds to limit how far back the lookbehind goes: >>> regex.findall(r"\w{2}", "abcd ef")