I have a Regular Expression: [a-z]{
which is a valid expression as per Javascript's RegExp.
But if i change it to: [a-z](
It's not a valid expression. I need to escape "(" to make it work.
Why does the "{" without escaping works?
Is there a way to force Javascript to return it as invalid expression?