Make.com LabBeginner
Replace Substrings Using replace() in Make.com
You need to remove dashes '-' from a phone number string and replace them with empty strings.
Live Execution Simulator
Idle
π₯
Incoming Data
βοΈ
Make.com Node
π―
Next Step
> Ready. Type your expression below and click "Check Answer" to run the node.
Incoming Payload / Data:
{
"phone": "+1-555-0199"
}
Press Enter or click Check Answer. +10 XP
β Solution & explanation
replace(phone; -; )
Output: +15550199
replace(text; search; replacement) replaces every occurrence of the search value. Leaving the third argument empty removes the matches entirely.π‘ Pro tip: The search value can be a regular expression: replace(phone; /[^0-9+]/g; ) strips everything except digits and the plus sign.
Also accepted: replace(phone; "-"; ""), replace(phone; -; "")