G
gypsy3001
Today, I was trying to construct a regular express in JavaScript. But
I kept getting the "Error: unterminated parenthetical" message.
I want to do something like this:
keyCombo = "
";
pattern = new RegExp (keyCombo);
str = string.replace (pattern, "frown");
So, first thing I fixed is ":\(" . . . But I still get the same error!
I've also tried ":\\\\(". And that didn't work. Please help and give
me a hint. Thanks.
Chieh
I kept getting the "Error: unterminated parenthetical" message.
I want to do something like this:
keyCombo = "
pattern = new RegExp (keyCombo);
str = string.replace (pattern, "frown");
So, first thing I fixed is ":\(" . . . But I still get the same error!
I've also tried ":\\\\(". And that didn't work. Please help and give
me a hint. Thanks.
Chieh