Answers for "delete specific character from string javascript"

8

javascript remove line breaks from string

var stringWithLineBreaks = `
O boy 
I've got 
Breaks
`;
var stringWithoutLineBreaks = stringWithLineBreaks.replace(/(\r\n|\n|\r)/gm, "");//remove those line breaks
Posted by: Guest on August-05-2019
4

javascript remove specific character from string

var newString = oldString.replaceAll("character/string goes here", "");

// Example
var oldString = "Hello World!";
var newString = oldString.replaceAll("o", "");
console.log(newString);
// Prints 'Hell Wrld!' to console.
Posted by: Guest on September-08-2020
7

javascript remove character from string

mystring.replace(/r/g, '')
Posted by: Guest on October-08-2020

Code answers related to "delete specific character from string javascript"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language