JSFiddle - React, Tailwind, and code Playground by Steven Senkus January 13, 2020 JavaScript const regex = /\(([^)]+)\)/; const d = regex.exec('2.txt(efgh)'); console.log(d)