Question: . Java Regex For each question, if you think the question is ambiguous explain the ambiguity and how you resolved it. NOTE: a.c, and d

. Java Regex For each question, if you think the

.

Java Regex For each question, if you think the question is ambiguous explain the ambiguity and how you resolved it. NOTE: a.c, and d just ask if a whole string exactly matches your regular expression -- b asks the hard question of finding all matches within a bigger string. a) A Javaregex that matches an entire string iff the string is an integer whose numeric value is greater than 20. (e.g. 23 yes 0122 yes 9 no 20 no) b) A Javaregex that finds each integer in the string, but only if it is surrounded by whitespace or operator characters (+-*/) (e.g.) within the string big3 values are 2+17-166 32 it should find 2,17,and 32 c) A javaregex that matches a tag, where we define tag to be anything in the form where opsp is 0 or more spaces tagname consists of just letters attributes is a sequence of 0 or more atr, each of which is preceded by one or more spaces each atr is a segunce of non-white characters that contains exactly one = (e.g. YES

YES NO d) A javaregex that matches a string that starts with lowercase letters, then has a single &, then has the same lowercase letters that it started with. (e.g. abc&abg YES abc&&abc NO abc&cba NO 2abc&2abc NO Java Regex For each question, if you think the question is ambiguous explain the ambiguity and how you resolved it. NOTE: a.c, and d just ask if a whole string exactly matches your regular expression -- b asks the hard question of finding all matches within a bigger string. a) A Javaregex that matches an entire string iff the string is an integer whose numeric value is greater than 20. (e.g. 23 yes 0122 yes 9 no 20 no) b) A Javaregex that finds each integer in the string, but only if it is surrounded by whitespace or operator characters (+-*/) (e.g.) within the string big3 values are 2+17-166 32 it should find 2,17,and 32 c) A javaregex that matches a tag, where we define tag to be anything in the form where opsp is 0 or more spaces tagname consists of just letters attributes is a sequence of 0 or more atr, each of which is preceded by one or more spaces each atr is a segunce of non-white characters that contains exactly one = (e.g. YES

YES  . Java Regex For each question, if you think the question NO d) A javaregex that matches a string that starts with lowercase letters, then has a single &, then has the same lowercase letters that it started with. (e.g. abc&abg YES abc&&abc NO abc&cba NO 2abc&2abc NO

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!