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 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 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 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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
