Substitution
- takes extracted text and replaces or rearranges them
Substitution Examples
- License plate
- file names
- Typos
- Version numbers
Substitution Method
re.sub(pattern, replacement, string, count=0, flags=0)
Backreferences
- allow matched patterns to be placed in replacement