point of interest - Check is regex is valid via regex -


out of curiousity, possible write regex, checks if other regexs valid.

no, not possible: regular expression execution model not powerful enough that.

in order regular expression string valid, parentheses in string must balanced. since it not theoretically possible write regular expression verify if parentheses in string balanced, not possible write regular expression check validity of regular expression string.


Comments