Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use JavaScript and regular expressions to perform the following: Checks if a string contains at least one upper/lower case letter, a non- alphanumerical character, and

image text in transcribed
image text in transcribed
image text in transcribed
Use JavaScript and regular expressions to perform the following: Checks if a string contains at least one upper/lower case letter, a non- alphanumerical character, and its length is at least 8 Removes all non-numeric characters from a string. Replaces all new lines in a text with commas Checks if a string of minimum one character begins with an uppercase letter and all other letters are lower case or spaces. No other characters are allowed. Use the above script along with a web page that makes the use of forms to enter the necessary data. Make sure all the fields have values. Print messages next to any empty fields when the form is submitted. The following are some screen shots you may use as reference: On loading of the web page: Please input the following: *required field Enter String to Check for Certain Characters: Enter String to Remove Non-Digits Enter Lines to Replace newlines with Commas: Enter String to Check for Pattern: Submit On submit with empty fields: Please input the following: id field Enter String to Check for Certain Characters Sting to check for Curtain Chris Regionid Enter String to Remove Non-Digits String to move on digitis Required Enter Lloes to Replace newlines with Commas String to Replace Newtimes with Carunas at Required ] Suing Check for Paws Required Enter String to Check for Pattern: Submit Example input/output: Please input the following: sequired field Enter String to Check for Certain Charactersabc123 Enter String to Remove Non-Digits: abc-12360123 Enter Lines to Replace newlines with Commas: Sugar Coffee Tea Candy Chocolate Enter String to Check for Pattern: Good luck Submit Please input the following: required field. Enter String to Check for Certain Characters: abc123 * String is invalid Enter String to Remove Non-Digits: 123123 Enter Lines to Replace newlines with Commas: Sugar, Coffee, Tea, Candy, Chocolate Enter String to Check for Pattern: Good luck String is valid Submit

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro Oracle Fusion Applications Installation And Administration

Authors: Tushar Thakker

1st Edition

1484209834, 9781484209837

More Books

Students also viewed these Databases questions

Question

=+5. What are the six main categories of nonverbal signals? [LO-5]

Answered: 1 week ago