Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need help writing a program in Java to recognize invalid user inputs using regular expressions. Task: Write a program that will recognize invalid inputs
I need help writing a program in Java to recognize invalid user inputs using regular expressions.
Task: Write a program that will recognize invalid inputs using regular expressions. What will the application do? The program will validate different kinds of input. . Build Specifications 1. Write a method that will validate names. Names can only have alphabets, they should start with a capital letter, and they have a maximum length of 30 2. Write a method that will validate emails. An email should be in the following format: (combination of alphanumeric characters, with a length between 5 and 30, and there are no special characters)@(combination of alphanumeric characters, with a length between 5 and 10, and there is no special characters Adomain can be combination of alphanumeric characters with a length of two or three the following format: farea code of 3 digits (3digits) 14 digits) 4. Write a method that will validate date based on the following formatStep 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