Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java question about regular expressions Consider the following regular expression inside a Java String: String expression = ([1-9]|[1-6][0-9])[A-K]; Write four public strings s1m, s2m, s3n,

Java question about regular expressions

image text in transcribed

Consider the following regular expression inside a Java String: String expression = "([1-9]|[1-6][0-9])[A-K]"; Write four public strings s1m, s2m, s3n, s4n as public String s1m = "ellipsis"; public String s2m = "ellipsis"; public String s3n = "ellipsis"; public String s4n = "ellipsis"; where ellipsis is a string on which: in the case of s1m and s2m, the expression matches() in the case of s3n and s4n, the expression does not match. s1m and s2m must be of different lengths, and must not contain the same character twice, s3n and s4n must also be of different lengths and must not contain the same character twice

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

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

2nd Edition

1597499471, 978-1597499477

More Books

Students also viewed these Databases questions