Answer the question
In order to leave comments, you need to log in
Regexp to check for regexp
Is there a regular expression that checks if a given string is a regular expression?
Answer the question
In order to leave comments, you need to log in
It is impossible, because to check the regular expression it is necessary to check the balance of bracket sequences, which are not described by regular grammars.
And for what? Wouldn't it be easier to take and try to compile this line as a regular expression?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question