Question
Task 07 (5 points) Write a single RegEx to match all of the items that you have enough rupees for Input file (hw0207.txt) Expected output
Task 07 (5 points)
Write a single RegEx to match all of the items that you have enough rupees for
Input file (hw0207.txt) | Expected output of script |
item cost lamp oil 5 rope 10 bombs 20 | lamp oil 5 rope 10 |
Note: You only have 12 rupees, if you want to buy anything more youll need to be a little richer
Task 08 (5 points)
Write a single RegEx to match every date except my dogs birthday
Input file (hw0208.txt) | Expected output of script |
1991 January 25 1993 February 28 1994 December 21 1995 May 17 1996 January 30 1999 June 14 2002 August 6 2005 July 19 2009 August 5 2010 August 24 | 1991 January 25 1993 February 28 1994 December 21 1995 May 17 1996 January 30 1999 June 14 2002 August 6 2009 August 5 2010 August 24 |
Task 09 (5 points)
Write a love poem with sed
Input file (hw0209.txt) | Expected output of script |
Roses are red Roses are yellow Violets are violet My dog is violet Violets are blue Sugar is bad for you Sugar is violet Sugar is sweet I have the flu You were my brother, Anakin I loved you And so are you And you are blue And who are you
| Roses are red Violets are blue Sugar is sweet And so are you
|
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