Answered step by step
Verified Expert Solution
Link Copied!

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 (30 points)
Create the Perl script proj1_1.pl that print lines that contain an opening and closing XML heading tag from proj1_data.txt. Valid tags are name, price, description, preparation_time, and food_costs 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 $1.00 to the price and $0.50 to the food_costs for each menu item.
The output should look like this:

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions