ID EN
Regular Expression

NOFLAG

Python 3.11

Indicates no flag being applied, the value is 0. This flag may be used as a default value for a function keyword argument or as a base value that will be conditionally ORed with other flags. Example of use as a default value:

Syntax

PYTHON
re.NOFLAG

Examples

Example 1
PYTHON
def myfunc(text, flag=re.NOFLAG):
    return re.match(text, flag)