Posted: January 7th, 2022
Java provides a package, java.util.regex, to manipulate
regular expressions. Write a regular expression for URLs and then
evaluate a set of URLs against your regular expression. This
assignment involves programming, since input structure testing
without automation is pointless.
(a) Write (or find) a regular expression for a URL. Your regular
expression does not need to be so general that it accounts for
every possible URL, but give your best effort (for example “*”
will not be considered a good effort). You are strongly
encouraged to do some web surfing to find some candidate
Place an order in 3 easy steps. Takes less than 5 mins.