I am trying to convert this query to SQL Server. It basically removes all non numbers except + in the phone number so I can match it with +19123123123.
select phone
from users
where regexp_replace(phone, '[^+0-9]', '') = '+19123123123'
For example:
19123123123
+1 912 123 123
1 912 123 123
(+1) 912 123 123
(+1)912-123-123
Thanks.