Is it a problem?

Report a typo

For instance, you have the following pattern r'([Dd]ogs?)|([Cc]ats])'and the following string 'Dogs are the best!'. As you can see the string matches only the first group of the regexp pattern. What happens if you pass the groups()method on the result?

Select one option from the list
___

Create a free account to access the full topic