JSFiddle - React, Tailwind, and code Playground

by Steven Senkus

JavaScript

const regex = /\(([^)]+)\)/;
const d = regex.exec('2.txt(efgh)');
console.log(d)