From: Guido van Rossum Date: Wed, 22 Oct 1997 16:28:53 +0000 (+0000) Subject: Added "new" symbol defns for RE_ANSI_HEX and RE_NO_GNU_EXTENSIONS -- X-Git-Tag: v1.5b1~170 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24986204cfa14e31726a7f2ac5faeafdfad760f0;p=python Added "new" symbol defns for RE_ANSI_HEX and RE_NO_GNU_EXTENSIONS -- hopefully the last maintenance on this module, ever. --- diff --git a/Lib/regex_syntax.py b/Lib/regex_syntax.py index bb80f4e88d..8631f42133 100644 --- a/Lib/regex_syntax.py +++ b/Lib/regex_syntax.py @@ -32,6 +32,12 @@ RE_NEWLINE_OR = 16 # *, +, ? - only special when not after the beginning, (, or | RE_CONTEXT_INDEP_OPS = 32 +# ANSI sequences (\n etc) and \xhh +RE_ANSI_HEX = 64 + +# No GNU extensions +RE_NO_GNU_EXTENSIONS = 128 + # Now define combinations of bits for the standard possibilities. RE_SYNTAX_AWK = (RE_NO_BK_PARENS | RE_NO_BK_VBAR | RE_CONTEXT_INDEP_OPS) RE_SYNTAX_EGREP = (RE_SYNTAX_AWK | RE_NEWLINE_OR)