I have several values in my name
column within the contacts
table similar to this one:
test 3100509 DEMO NPS
I want to return only the numeric piece of each value from name
.
I tried this:
select substring(name FROM '^[0-9]+|.*') from contacts
But that doesn't do it.
Any thoughts on how to strip all characters that are not numeric from the returned values?