What i'd like is to turn a string like this;
10 - 15 st. pan,cras
to
10 - 15 ST PANCRAS
I get most of the way with
`select upper(regexp_replace('10 - 15 st. pan,cras', '[^a-zA-Z 0-9-]', '', 'g'));`
But i can't seem to remove the double spaces around the number. I've tried, adding an extra space in the expression;
`select upper(regexp_replace('10 - 15 st. pan,cras', '[^a-zA-Z 0-9-]', '', 'g'));`
But no difference in outcome. I'm using regexp_replace as i find the substring syntax harder to follow. On 9.6 string is stored in text