Python · Module
re
Python’s re module performs regular expression matching and text replacement. Patterns can be compiled and reused, or passed directly to module functions.
Last updated
Syntax
re.compile(pattern, flags=0)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
re.compilere.searchre.matchre.fullmatchre.findallre.finditerre.splitre.sub