Is there a regular expression to detect a valid regular expression?
> Is there a regular expression to detect a valid regular expression?No, there is not. For example, parentheses in a regex must be balanced, and (famously) there is no regex to detect balanced parentheses.