JSFiddle - React, Tailwind, and code Playground
JavaScript
var txt = "(This) (is) (my) (simple) text";
re = /\((.*?)\)/;
console.log(txt.match(re)[1]);
var txt = "(This) (is) (my) (simple) text";
re = /\((.*?)\)/;
console.log(txt.match(re)[1]);