7
I need a Regex to check inside the string, the parenthesis has been closed.
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 was done 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.
I didn’t understand your doubt.
– Jorge B.
@Jorge B. I need one
regex
check that inside the string, the parenthesis has been closed.– Samir Braga
@Anthonyaccioly, could you make a demonstration of how this would be done?
– Samir Braga
@Samirbraga, feito.
– Anthony Accioly