2. Using the notation introduced in this section, write a regular expression that could be used to match each of the following a) Any sequence of letters (upper- or lowercase) that includes the letter...


2. Using the notation introduced in this section, write a regular expression that<br>could be used to match each of the following<br>a) Any sequence of letters (upper- or lowercase) that includes the letter Z<br>(in uppercase).<br>b) Any eleven-digit telephone mumber written in the form (xx) I*x-XXIx<br>c) Any eleven-digit telephone number either in the form (xxx)xxx-xxxx<br>or xxx-XXx-XXx.<br>d) A non-negative real number with an optional decimal part. The ex-<br>pression should match numbers such as 17. 183.9999, 182., 0, 0.001,<br>and 21333.2.<br>e) A complete line of text that contains only letters.<br>r) A C++ style one-line comment consisting of // and all the following<br>characters up to the end-of-line.<br>

Extracted text: 2. Using the notation introduced in this section, write a regular expression that could be used to match each of the following a) Any sequence of letters (upper- or lowercase) that includes the letter Z (in uppercase). b) Any eleven-digit telephone mumber written in the form (xx) I*x-XXIx c) Any eleven-digit telephone number either in the form (xxx)xxx-xxxx or xxx-XXx-XXx. d) A non-negative real number with an optional decimal part. The ex- pression should match numbers such as 17. 183.9999, 182., 0, 0.001, and 21333.2. e) A complete line of text that contains only letters. r) A C++ style one-line comment consisting of // and all the following characters up to the end-of-line.

Jun 01, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here