Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question8 10 pts Assume we have a file of addresses some of which end with a city,state zipcode where the state s a two-letter upper
Question8 10 pts Assume we have a file of addresses some of which end with a city,state zipcode where the state s a two-letter upper case abbreviation and the zipcode is a five-digit number. The city may Include multiple words (like New York City) as long as each word starts with a capital letter and otherwise contains only lower case letters. Which of the following egrep statements will locate all such lines? O egrep IA-Zla-2 A-Za- A-ZIla-z1. IA-ZH2 10-9151S addresses o egrep IA-ZIa-2+10.2)IA-Zla-2+. IA-ZI(2 10-955 addresses egrep 'A-Zla-2+0.3.A-Z 210-91515' addresses Question 9 10 pts Provide a regular expression which will match one upper case letter at the very beginning of a line followed by one or more lower case letters followed immediately by the end of the line. Question 10 10 pts The regular expressions Mlla+and A-Za-z+S will match the same thing True False
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