my string is like this
'{ "city": "(not set)", "cityId": "9108665", "continent": "Americas", "country": "United States", "latitude": "0.0000", "longitude": "0.0000", "metro": "(not set)", "networkDomain": "(not set)", "networkLocation": "(not set)", "region": "Pennsylvania", "subContinent": "Northern America" }'
how can i use REGEXP_SUBSTR
to get the region, Pennsylvania
i am trying
select REGEXP_SUBSTR(string,':[^:]+[[:alpha:]]',1,10) as region
however, it doesn't give me what i want.