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
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