I want to parse places names like this:
à : Paris (France)
But often it encounters a place in USA like this
à : Boston (MA) (États-Unis)
I tried this to parse it:
place='à : (?P<city>.+) (\((?P<country>.+)\)|(\((?P<state>.+)\) \((?P<country>.+)\)))'
But it doesn't seem to work and it goes beyond my current understanding of beginner.
How to handle this?