Python Regex Match ( ) function - Coding exercise
Test your Python Regex match() and group() function skills.
We'll cover the following...
We'll cover the following...
The Match Function Exercise
Let’s assume that we have a string variable called line, where line = "Learn to Analyze Data with Scientific Python" passed to a function called regex_processor() in the following code.
Can you find the word "Analyze" after the word "to"?
Your task is to replace the '?' on the line 9 with a correct group number (1 or 2) for the word Analyze.
Do you need a hint?
Click on the button below: