JSFiddle - React, Tailwind, and code Playground

by tuga

JavaScript

var mystring = "test {5} test {5}"
mystring = mystring.replace(/\{5\}/g,'replaced');

alert(mystring);