Skip to content

Instantly share code, notes, and snippets.

@dichharai
Last active January 30, 2023 05:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dichharai/11823e359cda9e972f910058967111e0 to your computer and use it in GitHub Desktop.
Save dichharai/11823e359cda9e972f910058967111e0 to your computer and use it in GitHub Desktop.
Long Flag Short Flag Meaning
ASCII A Makes several escapes like \w \b \s \d match only on ASCII characters.
DOTALL S Make . match any character including newlines.
IGNORECASE I Do case-insensitive matches.
LOCALE L Do a locale-aware match.
MULTILINE M Multi-line matching affecting ^ and $.
VERBOSE X (for 'extended') Enable verbose REs which can be organized more cleanly and understandably.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment