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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started