regular expressions beautified
No account is required. Learn the material, try the examples, and mark it complete locally when you are ready to move on.
Text Processing
Lets say our objective is to find some patterns in textual data. Then it becomes really important for us to understand how python stores and search for text inside the strings.
Just for the reference I'm including useful patterns on top of the file.
import re # regular expressionstext1 = "This is a sample email sent by ashishchaudhary62@gmail.com"
text1'This is a sample email sent by ashishchaudhary62@gmail.com'Lets say our objective is to extract just the email from the string