Question: JAVA Programing. Write regular expressions after the to validate the following strings: a) An International Standard Book Number (ISBN). This is a unique 13-digit number

JAVA Programing.

Write regular expressions after the to validate the following strings:

a) An International Standard Book Number (ISBN). This is a unique 13-digit number assigned to each edition of a book. An ISBN contains hyphens. Here is a sample: 978-3-16-148410-0. Assume that each digit is in the range 0-9.

b) A chemical symbol of an element from the Periodic Table.

c) A measurement including a whole number and units separated by one space. A sample measurement is 34 oz. Assume that units is lower case letters only.

d) A two-character abbreviation for any of the eight US states or the Canadian province adjacent to the Great Lakes. Assume the abbreviation is upper case characters only.

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!