Skip to content

Instantly share code, notes, and snippets.

@ishritam
Last active April 22, 2020 18:55
Show Gist options
  • Save ishritam/5801407fdc75cb80997fedb200fae4cb to your computer and use it in GitHub Desktop.
Save ishritam/5801407fdc75cb80997fedb200fae4cb to your computer and use it in GitHub Desktop.
Function Description
re.search() Take the pattern, scan the text, and then return a Match object.
re.findall() Returns a list containing all matches
re.split() Returns a list where the string has been split at each match
re.sub() Replaces one or many matches with a string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment