Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A developer from another team has asked you for help. She needs you to develop a regex script to find all phone numbers and email

image text in transcribed

A developer from another team has asked you for help. She needs you to develop a regex script to find all phone numbers and email addresses in text files. It is your task to develop a working prototype. First, all of the code should be housed in main.py and read a file called text.txt. (Don't forget to add the text.txt file to your REPLIT.) To create content for the text.txt file, copy text from any website with phone numbers and email addresses, then paste it into this file to get started. Using Python and regex, retrieve all phone numbers and email addresses in the text.txt file. Once it is working, make sure that your regex works with other text by testing additional text content. You can perform the different tests by replacing the text in the text.txt file or adding additional text files, such as text2.txt, text3.txt, etc. Develop your script using REPLIT

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

design a simple performance appraisal system

Answered: 1 week ago