Flags and their functions

Report a typo

Match flags with the way they change the behavior of your pattern.

Match the items from left and right columns
re.IGNORECASE
re.DOTALL
re.VERBOSE
re.MULTILINE
re.ASCII
Makes the dot metacharacter match a newline.
Matches only ASCII characters.
Performs case-insensitive matching.
Allows you to add comments to your regular expressions.
Allows ^ and $ to match over several lines.
___

Create a free account to access the full topic