Question
This is a JavaScript 2 question for course INFO 2134 I never received the correct answers for this assignment 5. What do you put in
This is a JavaScript 2 question for course INFO 2134
I never received the correct answers for this assignment 5. What do you put in the "Your Regular Expressions" box?
TASK 2: REGULAR EXPRESSIONS
Objective 5D; 12 points (4 points per term, partial credit may be awarded for item)Using your textbook and online references such as RegularExpressions.info (https://regular-expressions.info CTRL+Click on the link to open in your browser), create Regular Expressions in Table 2 below.
Requirement | Test String | Your Regular Expressions | |||
---|---|---|---|---|---|
Match all instances of grey or gray within the test string to the right: - The pattern should not be case-sensitive. - The pattern should identify 3 matched items in the pattern to the right. | Gray Greyson found a gravy boat on the table full of gray paint. The paint had been used to spell the phrase, Grei you will die! | ||||
Match any string that begins with The - The pattern should not be case sensitive - The pattern should be multi-line - The pattern should return 2 matches. | The rain in Spain falls mainly on the plains. Plains, not grains monsieur! The grains in Spain fall mainly on the plains? | ||||
Match all the digits in the test string: - The pattern should return 3 matches |
| ||||
Match any string that begins with bu followed by two instances of n (e.g., Bunnies but not Bunsen). - The pattern should be case insensitive - The pattern should return all matches and not stop after the first match. - The pattern cannot be Bunn or bunn - The pattern should return 1 match | Bunnies burn bunions on Bunsen burners, rights? | ||||
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