Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Regex ( 3 0 points ) Create the Perl script proj 1 _ 1 . pl that print lines that contain an opening and closing
Regex points
Create the Perl script projpl that print lines that contain an opening and closing XML heading tag from projdata.txt Valid tags are name, price, description, preparationtime, and foodcosts regardless of the case. Tags may also have any arbitrary content inside of them. You may assume that a or a character will not appear inside of the attribute's value portion.
A few substitutions that are required:
Capitalize words that should be upper case such as Italian, Bolognese, and Parmesan
Change each tag to
Due to inflation, add $ to the price and $ to the foodcosts for each menu item.
The output should look like this:
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