Why does my string not pass the regex?
This string(kwordSyntaxSearch) should pass the condition:
( sdf sdf )
cout<<"for you";
return 0;
}
Here is my condition:
/^\s*\([\s\S]*\)\s*[^\{][\s\S]*;\s*(if|else|else
if|for|while|do|switch|\}|return)[\s\S]*$ /.test(kwordSyntaxSearch)
It doesnt want to pass the cond, what did i miss?
No comments:
Post a Comment