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

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
Get step-by-step solutions from verified subject matter experts
