How to make (886) 7199 2483
to +886 7199 2483
using regex?
I can only extract the dial code by
const dialCode = '(886) 7199 2483'.match(/(([^)]+))/)[1]; // 886
but don’t know how to do the next step
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
How to make (886) 7199 2483
to +886 7199 2483
using regex?
I can only extract the dial code by
const dialCode = '(886) 7199 2483'.match(/(([^)]+))/)[1]; // 886
but don’t know how to do the next step