Regular Expressions:
- Regular expressions are used to extract the required information from the given input String using expressions.
- “re” is a pre-defined module.
- “re” module providing pre-defined functions to implement regex in python.
- Some of the functions are :
- re.match()
- re.search()
- re.findall()
- re.split()
- re.compile()
- re.sub()
Note: Regular expressions mainly used to validate the inputs.