Answered step by step
Verified Expert Solution
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 -
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 extratextStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started