JSFiddle - React, Tailwind, and code Playground

by Santosh Giridhara

JavaScript

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