1 """Constants for selecting regexp syntaxes for the obsolete regex module.
3 This module is only for backward compatibility. "regex" has now
4 been replaced by the new regular expression module, "re".
6 These bits are passed to regex.set_syntax() to choose among
7 alternative regexp syntaxes.
39 RE_CONTEXT_INDEP_OPS = 32
45 RE_NO_GNU_EXTENSIONS = 128
48 RE_SYNTAX_AWK = (RE_NO_BK_PARENS | RE_NO_BK_VBAR | RE_CONTEXT_INDEP_OPS)
49 RE_SYNTAX_EGREP = (RE_SYNTAX_AWK | RE_NEWLINE_OR)
50 RE_SYNTAX_GREP = (RE_BK_PLUS_QM | RE_NEWLINE_OR)