Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript remove quotes from string

var someStr = 'He said "Hello, my name is Foo"';
console.log(someStr.replace(/['"]+/g, ''));
Comment

js remove quotes from string

var name = '"Water"'
var clearName = JSON.parse(name);

//console.log(clearName) -> Water
Comment

PREVIOUS NEXT
Code Example
Javascript :: current datetime js 
Javascript :: Do not know how to serialize a BigInt 
Javascript :: node.js mysql create table 
Javascript :: axios not defined 
Javascript :: js regex remove html tags 
Javascript :: remove all chars from string and leave only numbers javascript 
Javascript :: speed facebook video with js 
Javascript :: regex match number javascript 
Javascript :: rotate a div using javascript 
Javascript :: show console chrome mac 
Javascript :: remove first and last character from string javascript 
Javascript :: discord js sending a message to a specific channel 
Javascript :: REPLACE BROKEN IMAGES WITH A DEFAULT IMAGE 
Javascript :: javascript ceiling 
Javascript :: jquery create a button 
Javascript :: javascript split array into chunks 
Javascript :: sort array with objects 
Javascript :: how to get id from url in javascript 
Javascript :: empty the value of an input in jquery 
Javascript :: js console log without spaces 
Javascript :: javascript function description standards 
Javascript :: javascript regex wrap string 
Javascript :: jquery get div height 
Javascript :: regular expression number from 1 to 100 
Javascript :: p5.js style 
Javascript :: javascript date - 7 days 
Javascript :: javascript object get element by index 
Javascript :: react map 
Javascript :: how much html and css before javascript 
Javascript :: max_safe_integer 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =