Catch the group

Report a typo

Take a look at the template:

template = "(\d+ ([A-Za-z]+) Street), (\w+),( (\w+),)? United Kingdom"

This template can match the following string: 90 Eagle Street, London, England, United Kingdom. Suppose you want to extract the name of the street (Eagle). What number should you pass to the group() method to get it?

Select one option from the list
___

Create a free account to access the full topic