Here's my string
str = "85 ch. Osborne L'Ange-Gardien (Québec) J8L4C1 Canada"
I'm trying to extract J8L4C1
Is there a way to extract a substring based on some conditions (e.g. len(str) = 6 and str = string integer string integer string integer)
Using split wouldn't work since the zip code might be placed somewhere else in the string.