Recently I noticed the question about extracting emails, phones, links(urls) from text fragments and immediately I decided to write this short post.
Regex comes to rescue
Each of the following: email, phones, link, form a category that falls under/matches a certain text pattern. What are the text patterns ? These are regexes, aka regex patterns, short for regular expressions. Eg. most emails fit into the following regex pattern: