I have problem as below:
var test = $("#k_w").val().search("sinh("+parseFloat(sinh_array[i]));
The debugger shows an error: Uncaught SyntaxError: Invalid regular expression: /sinh(2/: Unterminated group.
sinh_array[i] are numbers.
What’s wrong?
You have an opening parenthesis in your regex, but no closing parenthesis.
I think what you really want is this:
I suspect you want to match the actual parens, and not create a group.