Question
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
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. (Dont 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started