Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In python please write regular expressions that do each the following: Match the substring hello world in a string. Find all words in an input

In python please write regular expressions that do each the following:

Match the substring "hello world" in a string.

Find all words in an input string that contains three consecutive vowels, regardless of case.

Match an input string that is entirely a flight code, of the format AA####, where AA is a two-letter uppercase airline code, and #### is a three- or four-digit flight number.

example -

image text in transcribed

Note: text in red is matched by the regular expression. Each line is a separate test input string Regex 1: Programmers wi11 often write hello vorld as their first project with a programming language Regex 2: The gooey peanut butter and jelly sandwich was a beauty Regex 3 AA312 AA1298 NW1234 US443 US31344 AA123 extratext Note: text in red is matched by the regular expression. Each line is a separate test input string Regex 1: Programmers wi11 often write hello vorld as their first project with a programming language Regex 2: The gooey peanut butter and jelly sandwich was a beauty Regex 3 AA312 AA1298 NW1234 US443 US31344 AA123 extratext

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

Students also viewed these Databases questions

Question

6. Does your speech have a clear and logical structure?

Answered: 1 week ago