Write a regular expression that matches the following criter

Write a regular expression that matches the following criteria: Telephone numbers in the form A complete question. The sentence should start with a capital letter and end with a question mark. Assume that the only permissible nonalphabetic characters are commas and spaces, but two commas may not be adjacent. Allow capital letters in the middle. Matches a formal name. The name may have an optional title or honorific (such as Dr. Doctor, Miss, Mr., etc.), a first name, an optional middle name or initial (initials must have a period), a last name, followed by an optional period-free designation (such as Junior or IV). The designation should be preceded by a comma. All parts of the name should begin with uppercase letters. You may assume that all words, except a middle initial, contain at least two letters.

Solution

1 a) Regualar expression to match phone number of standard 10 digit number

telephone in the form ###-###-####

where # maens any number

The expression is

Sorry for part b) and c)

 Write a regular expression that matches the following criteria: Telephone numbers in the form A complete question. The sentence should start with a capital let

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site