Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
