Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Regex solution in Clear category for [old] Brackets by juacompe
"use strict";
function brackets(expr) {
let digitsAndOperators = /[0-9,+,\-,*,/]/g
let pairOfBrackets = /(\[\]|\(\)|{})/g
expr = expr.replace(digitsAndOperators, "")
while(pairOfBrackets.test(expr))
expr = expr.replace(pairOfBrackets, "")
return expr == ""
}
Aug. 10, 2019