Removing space and dash in phone

Hi,

My goal: to remove space and dash in phone number in the http module, but remain the “+” symbol at the beginning of the phone number

This is what i’ve tried as per image

However the outcome is still the same, space and dash “-” still in the phone number

how to achieve the phone number function field to remove the space and dash and remain with “+”?

TQ

Welcome to the Make community!

You can use the built-in function replace with this Pattern (regular expression):

e.g.:

/[-\s]+/g

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

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

Thanks sam. its working well

No problem, glad I could help!

1. If anyone has a new question in the future, please start a new thread. This makes it easier for others with the same problem to search for the answers to specific questions, and you are more likely to receive help since newer questions are monitored closely.

2. The Make Community guidelines encourages users to try to mark helpful replies as solutions to help keep the Community organized.

This marks the topic as solved, so that:

  • others can save time when catching up with the latest activity here, and
  • allows others to quickly jump to the solution if they come across the same problem

To do this, simply click the checkbox at the bottom of the post that answers your question:

3. Don’t forget to like and bookmark this topic so you can get back to it easily in future!

@samliew