Hi can anyone help me replace a specific character that occur in a string with another character regardless how many characters to replace
Use this for a global text replace: your_str.replace(/old_char/g, 'new_char'); Code (markup): or this for global case-insensitive text replace: your_str.replace(/old_char/gi, 'new_char'); Code (markup):