JSFiddle - React, Tailwind, and code Playground

by j08691

JavaScript

var txt = "This is (my) simple text";
re = /\((.*)\)/i;
console.log(txt.match(re)[1]);