Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please i need help with this assignment 4. How to write a regular expression matching the social security number of the following format: 3 digits

please i need help with this assignment

image text in transcribed

4. How to write a regular expression matching the social security number of the following format: 3 digits followed by hyphen followed by two digits followed by hyphen followed by 4 digits, e.g.,493-29-3400. 5. What is the meaning of the following regular expressions: [^A-Z][A-Z]{2}[[ punct:]] I ^[^A-ZIA-Z]{2}[[-punct:]]$ [0-9]$ 6. There is a file /usr/share/dict/words on your VM that contains a list of words. Please give a command to find all words that are exactly 25 letters long. Please also show the command output. 7. In order to find words that have punctuation mark other than the following 3 punctuation marks period, forward slash, and hyphen, you can use the following regular expression: egrep 'punct:11' /usr/share/dict/words.legrep. -V '[./-]' Can you use the following two regular expression to achieve the same result? Why or why not? egrep :punct:ll' /usr/share/dict/wordslegrep -v'[/.-) egrep (Lepunct:l]' /usr/share/dict/words.legrep --v '[-] Make sure you run the commands on your VM to test these out

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Database Design And Relational Theory Normal Forms And All That Jazz

Authors: Chris Date

1st Edition

1449328016, 978-1449328016

More Books

Students also viewed these Databases questions

Question

What are Decision Trees?

Answered: 1 week ago

Question

What is meant by the Term Glass Ceiling?

Answered: 1 week ago