set of strings should not be at the left side of the first seen ;
This string (kwordSyntaxSearch) should pass the condition:
( sdf sdf )
cout<<"abc";
return 0;
}
This kwordSyntaxSearch must not pass the condition:
( sdf sdf )
cout<<"abc"
return 0;
}
This is a modified condition from the answer of username: f-j from my prev
question but i realized i needed more help.This pass the 2nd block of code
(w/c should not)
if(
/^\s*\([\s\S]*\)\s*[^\{](?:(?![^\s\S]if|else|elseif|for|while|do|switch|\}|return)|[\s\S]*);/.test(kwordSyntaxSearch)
I wanted to pass the condition if the first ; has not seen any of
if,else,else if,for, while,do,switch,},return before it (on its left side)
Can you please help me adjust the code so that it would pass the first
block and not the 2nd block.
No comments:
Post a Comment