Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 . Build a regular expression that captures all non - empty sequences of letters other than the string aaa . For your convenience, you

1. Build a regular expression that captures all non-empty sequences of letters other than the
string aaa. For your convenience, you may use a not operator that takes a set of letters
as argument and matches any other letter. For instance, not(abc) matches any letter other
than a, b and c. Use . to match any letter.
2. Build a regular expression that captures all Media Access Control Addresses (MAC address)
which is a 12 digit hexadecimal where each pair of hexadecimal numbers is separated by
a colon or hyphen. Additionally, MAC address is also valid where three groups of four
hexadecimal digits are separated by dots(.) Make sure you support your answer with proper
reasoning. Here are some of the MAC addresses that your regex should match (this list is
not exhaustive).
Keep in mind Hexadecimal numbers range 0 to 9 and letters from a to f and A
to F
01-23-45-67-89-AB
01:AB:45:CD:89:EF
0123.4567.89AB

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_2

Step: 3

blur-text-image_3

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

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

Students also viewed these Databases questions