Format phone

Hello, I need to format this phone number, removing spaces and text. Does anyone know how to do this?

Input:
11 998082411 (Mobile)
11972483886 (Mobile)

Output:
11998082411
11972483886

1 Like

Welcome to the Make community!

You can use the built-in function replace

e.g.:

{{ replace(1.input; "/\D+/g"; emptystring) }}

For more information, see the function documentation in the Help Center.

Here are some useful links and guides you can use to learn more on how to use the Make platform, apps, and app modules. I found these useful when I was learning Make, and hope they might benefit you too —

Getting Started

Help Centre Basics

Articles & Videos

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

1 Like

Hi @samliew , thanks for the reply.

Is this the format?

image

1 Like

No. Copy the line of code I provided above directly into the module’s field.

It should look like this:

Screenshot_2024-09-14_080926

Hope this helps! Let me know if there are any further questions or issues.

@samliew

Hi @Bruno_Abreu
Please remove the quotes.
image

Output:
image

Best regards,

Msquare Automation
Gold Partner of Make
@Msquare_Automation

Thank you brother, It’s working great here!

1 Like