I have a textbox where user can input Regex string which shall be then used as Regex match pattern.
I wonder if there is a way to validate the syntax of the input?
How do I know if it is valid Regex pattern or not?
I would not like the user to be able to input anything, but just valid Regex pattern.
Thanks!
You can use a try and catch statement to test if their input is corrupt.