Build, test, and debug regular expressions
Matches text enclosed in parentheses, including the parens themselves, using a non-greedy match that stops at the first closing parenthesis. It optionally also matches trailing word characters or spaces followed by an opening parenthesis, which helps catch nested or function-call-like paren patterns. With global and case-insensitive flags, it's typically used in JavaScript to strip all parenthetical content—such as annotations, notes, or version tags—from a string.