Question: Question 4 Write a regular expression which matches line comments in Java. In Java, tline comments start with / / and read until they read

Question 4
Write a regular expression which matches line comments in Java. In Java, tline comments start with // and read until they read a newline.
Question 5
Write a regular expression which matches an XML tag in the form of "" where tog_name and_content can be any alpha-numeric string including letters, digits, and spaces only (no symbols).
Question 6
Although we sed a regular expression to answer question 5, briefly explain why, generally speaking, one shouldn't use a regular expression for parsing XML (or HTML).
 Question 4 Write a regular expression which matches line comments in

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!