Question: Could I get an example of a program in rust that uses regular expressions to: 1) Search text files looking for addresses. Make assumptions about

Could I get an example of a program in rust that uses regular expressions to:

1) Search text files looking for addresses.

Make assumptions about what would define an address. Create a regular expression which searches text files for addresses based on your assumptions. Validate the functioning.

2.) Searches log files

We should create regular expressions to search log files of your choosing (network, web, server, etc.) to find at least 3 events of interest where the event of interest must have at least three indicators it is of interest (ex: event type, time-stamp value, event code, interesting text, parameter value, field value, etc.)

3). Find and consistently format all phone numbers (North American Numbering Plan - NANP and International).

4.) Demonstrates another non-trivial implementation of regular expressions.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!