Royal affairs

Report a typo

Suppose you want to match the following strings with one template: Catherine de Medicis, Charles de Medicis, Charles de Bourbon, Catherine de Bourbon.

Here's the first version of the template:

template = "Charles|Catherine de Medicis|Bourbon"

What is the best way to insert parentheses to make the template work correctly?

Select one option from the list
___

Create a free account to access the full topic