How to check a regular expression string is valid or not?
Posted on 2006-06-13
I try to write a program that allow people to input an regular expression and then I will use it to excute. But If the input string is not a valide regular expression then when execute it, the executer will through error.
It's not good. And I wanna check the valide of it!
So please show me how to do that!
Thanks so much!