Hey everyone,
Need help with being able to convert the following phone number formats coming in via API into a single format.
The 2 formats coming in are:
+1 (416) 506-0924 and (416) 506-0924
but when I pull it from the API, I want to save it to the db as +14165060924.
I tried doing an extract with regex with the following regex that was supposed to do exactly what I described.
(?:+?1)?\D*(\d{3})\D*(\d{3})\D*(\d{4})
But it didnt do anything, the numbers remained in their initial formats.
Iām not sure if I am missing a step here.
**
**
Any help would be appreciated, thanks!