Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use the website https://regex101.com/. Note that you can only use (), | (for the books +), and the Kleene Star *. Also assume the alphabet

Use the website https://regex101.com/. Note that you can only use (), | (for the books +), and the Kleene Star *. Also assume the alphabet {a b}

You must start the regular expression with a ^ and end with a $ to generate the behavior we desire, and wrap it in (). So in other words ^(stuff goes here)$

Using the following tests.

Just submit a plain text copy of the regular expression as the answer format.

Common sense applies (e.g. do not simply write a regular expression that ORs together all the tests).

MAKE SURE to USE FLAVOR PCRE2 (PHP >= 7.3) for REGEX 101.

Using a regular expression that accepts all words EXCEPT baa, ab, and abb.

These strings should have FULL matching

a

b

aa

bb

ba

aaa

bbb

bba

aab

aba

bab

abba

baba

abab

abbba

babababaabab

These strings should NOT have FULL matching:

baa

ab

abb

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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions

Question

What is operatiing system?

Answered: 1 week ago