On this page
  1. re.purge
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

re.purge

Prev: re.PatternError | Up: re | Next: re.RegexFlag
Rel: re.compile, re.error, re.escape, re.findall
Ref: docs.python.org — re.purge
Tags: #public #python3 #stdlib #re


Import

import re
from re import purge

Signature & Overview

re.purge()

Clear the regular expression caches

Usage

import re

re.compile(r"\d+")
re.purge()   # clears the internal compiled-regex cache

Gotchas

REPL Inspect

from re import purge
help(purge)

Linked from

Related notes