I have a field with an address in it (ex. 68 TIDAL BREEZE DR
) and this regular expression gets everything before the last sequence (ex. 68 TIDAL BREEZE
):
substring (address from '(.*) ')
My question is, how do I modify this expression to get everything after the first sequence (ex. 68) and everything before the last sequence (ex. DR) like so: TIDAL BREEZE
?
I'm using PostgreSQL 9.5.
Best Answer
Lazy match the first whitespace character to chop the first bit off.