Overview

Pattern matching and substitution.

Quick Example

  re.sub(r'\s+', ' ', text)
  

When to Use

Use this module when you need built-in support without adding third-party dependencies.

Common Tasks

See Also