This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\b([a-z]+\\d?[a-z]+\\d?) | |
The pattern above will match only the lowercase region names of the az cli command "az account list-locations -o table" | |
Try pasting the table output below inside https://regex101.com/ or https://regexr.com/ | |
DisplayName Name RegionalDisplayName | |
------------------------ ------------------- ------------------------------------- | |
East US eastus (US) East US | |
East US 2 eastus2 (US) East US 2 |