I want to check if a string hast 0...n whitespace, one * and 0...n whitespace.
The pattern
var derefpatt = new RegExp("\\s*\\*\\s*");
var res2 = derefpatt.test(string);
is true if string is " ** " but it should be only true if string is " * "
What is wrong?
Regards
Alex
