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
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
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 —
parseDate
| tokens for formatDate
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.
Hi @samliew , thanks for the reply.
Is this the format?
No. Copy the line of code I provided above directly into the module’s field.
It should look like this:
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
Hi @Bruno_Abreu
Please remove the quotes.
Output:
Best regards,
Msquare Automation
Gold Partner of Make
@Msquare_Automation
Thank you brother, It’s working great here!