Possible Duplicate:
What's wrong with JavaScript's regular expression notation?
Semicolon insertion was a huge mistake, as was the notation for literal regular expressions.
What is the design error with the literal regular expressions? The only one I can think of is that some IDEs don't parse the syntax correctly.