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 to Expert-Tailored 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

Recommended Textbook for

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions

Question

1. Understand how verbal and nonverbal communication differ.

Answered: 1 week ago