I’ve got a question. I have this regular expresion:
const r = /((B[(])*(w)+(b[)])*(s)*)+/g;
But lets suppose that we have the string :
ball (doll) (bicycle
So we wanna verify if every opening parenthesis has its closing parenthesis, then I wanna that this string returns me a false value, because the substring “(bicycle” hasn’t its closing parenthesis.
What can I do to create a pattern with regexp that verifies this? THANKS!! 😀