I have a little program allowing users to type-in some regular expressions. afterwards I like to check if this input is a valid regex or not.
I’m wondering if there is a build-in method in Java, but could not find such jet.
Can you give me some advice?
Here is an example.
java RegexTester "(capture"then outputs"Unclosed group", for example.