How to extract any email address from a file?

1.1K    Asked by OkamotoBando in Data Science , Asked on Jan 5, 2020
Answered by Okamoto Bando

Email address or any other specific words, numbers or any piece of texts can be extracted using a library called ‘re’ provided by Python. ‘Re’ stands for regex which finds a regex pattern between the texts. The below snippet shows how to extract an email address from a document.



Your Answer

Interviews

Parent Categories