How can i get numbers from a string? (custom app)

Hi there.
Im creating my own app on Make, and im trying to use the formula Replace to remove symbols and spaces from a string and get only the numbers. Ex. Input: (299) 468-4362. Output i want: 2994684362.

I wrote this but it’s not working:
replace(parameters.phone,[0-9]{8,20})

Thanks

Hi. Use the match replace and an regex like this (as global)

/-?\d*.?\d+/g

If you need additional support, please don’t hesitate to reach out.

Cheers
//HFBR