Using Regular Expressions - RegEx is an important skill for every programmer. Let's learn it in this lesson.
In python, Regular Expressions can be used by importing the re module.
import re
Once the module is imported, we will be able to use all regex functions available in the re module.
Following are the various regex metacharacters . ^ $ * + ? { } [ ] \ | ( ) which pulls very specific kind of data.
1. Use re.compile(pattern, flags=0) to compile a regular expression pattern into a regular expression object which can be used for matching patterns using its match(), search() and other methods.
regular