+ 4

What is the function of re module?

21st Aug 2016, 11:49 AM
shanthini R
2 Respuestas
+ 1
re stands for Regular Expressions. It makes recognizing patterns much easier. Check out this documentation page for more information and done examples. https://docs.python.org/3/library/re.html
30th Aug 2016, 9:47 PM
David
0
regular expression module, used for pattern matching and perform some specific operations on occurrence of specific patterns. Regular expressions have some specifc syntax. Take an example of IP address validation. generally we process it like, 1. split given string in 4 parts. 2. convert string to integers 3. validate if it is less then 256 and no leading zeros there after each dot. But using regular expression it is a single step process.
12th Sep 2016, 10:41 PM
Shankar Sharma
Shankar Sharma - avatar