Created
January 18, 2017 04:38
-
-
Save delwar2016/9842328bde5faae4986cfe4609d2e31a to your computer and use it in GitHub Desktop.
Python Regular expression
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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