Postgresql – Extract all substrings bounded by the same characters
Given a name_loc column of text like the following: {"Charlie – White Plains, NY","Wrigley – Minneapolis, MN","Ana – Decatur, GA"} I'm trying to extract the names, ideally separated by commas: Charlie, Wrigley, Ana I've gotten this far: SELECT SUBSTRING(CAST(name_loc AS…