JSFiddle - React, Tailwind, and code Playground

by Denis Tverdokhlebov

JavaScript

var str = "[\"[email protected]\"]";
var a = str.replace(/\[\"/, "");
alert(a);
var b = a.replace(/\"\]/, "");
alert(b);