remove a character from a text javascript code example Example: javascript remove character from string mystring.replace(/r/g, '')