Replace spaces on text parser string with regex

Hello Makers

I’ve this phone number (the user typed the phone number with a space, for example

+58 4241645522

I need delete spaces and obtain


I’ trying with this regex replace(/(?:.*?((?:1\d{12})|(?:\d{12}))(?:\s|$).*)|.*/;$) but not working

If somebody can help me, thanks a lot

PD. I’ll use these final number without spaces to send a Whatsapp message

Hey, you can do this with an IML Function, don’t need to use regex.

Screenshot 2023-10-20 at 2.58.32 PM


Hello, Work PERFECT

Thanks a lot

You can also use the phone module , which is make’s internal function .



Thanks for u response

1 Like