I'm trying to match a space in Postgres using substring.
I currently have: substring((data)::text from '(?:"name":")([a-zA-Z0-9._-]*)'),
The response of data would look like: "name":"John Smith"...
I want to match the full name, but sadly I seem to only be matching John. I tried adding \s without any luck. Any idea what I'm doing wrong?