I am trying to replace the +27 prefix on a South African Cell Phone number using a regular expression, please help guys.
Example:
let number = "+27712345678";
number = number.replace(/[+27]/g, "0");
console.log(number);
output is: 000010345608
All I want is to just replace the +27 with a Zero (0) and leave everything as it is.
Thanks you guys in advance.