Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 5 - Regular Expressions ( 1 6 Pts ) You are expected to implement the following tasks by using Regular Expressions. Write functions that
Question Regular Expressions Pts
You are expected to implement the following tasks by using Regular Expressions. Write functions that take string arguments and print the results in each task below.
Task Pts Write a function to find all occurrences of py followed by zero or more y characters.
Task Pts Write a function to find all digits or sequences of digits in the argument.
Task Pts Write a threeargument function to find all words starting with the letter in the first argument and ending with the letter in the second argument. All letters of the words should be lowercase.
Task Pts Write a twoargument function to replace all whitespace characters with the character in the first argument.
Step 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