I need a Regex that checks whether the parentheses have been closed within the string .
This is my example:
/regex/.test("fdfdfdf(ddsd"); //retorna false, porque o parentese nao foi fechado;.
/regex/.test("fdfedff(ffd)dd") //retorma true, porque o parentese foi fechado;.
My preference is that it be made as Regex, but if it is difficult or impossible, it may be otherwise, but my irreducible requirement is that it be in pure JavaScript.
Note: This will be done in a text box, so the number of characters inside and outside the parenthesis will vary.