Skip to content

Instantly share code, notes, and snippets.

@delwar2016
Created January 18, 2017 04:38
Show Gist options
  • Save delwar2016/9842328bde5faae4986cfe4609d2e31a to your computer and use it in GitHub Desktop.
Save delwar2016/9842328bde5faae4986cfe4609d2e31a to your computer and use it in GitHub Desktop.
Python Regular expression
In Python "re" module is used to write regular expression.
What are various methods of Regular Expressions?
Most commonly used regular expressions are as follows:
1. re.match(pattern, string)
2. re.search(pattern, string)
3. re.findall(pattern, string)
4. re.split(pattern, string, [maxsplit=0])
5. re.sub(pattern, repl, string)
6. re.compile(pattern, repl, string)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment