I am new on regex. Why is my regex not working? /A/gi, "z" && /B/gi, "x" && /C/gi, "y" && /D/gi, "a"
let convertedVal = TextValue1.replace(/A/gi, "z" && /B/gi, "x" && /C/gi, "y" && /D/gi, "a");
I want to convert "A" to "z" and "B" to "x" and "C" to "y" and "D" to a using regex.
But it seems that the and operator "&&" is not working.
Thank you.