I want to find all if
statements and for
statements which are not followed by curly brackets '{
'. When you write a single line in an if
statement you do not mostly enclose it in curly brackets, so I want to find all those if
and for
statements.
Please help!
Like I want to capture this statement
if (childNode.Name == "B")
return TokenType.Bold;
but not these kinds
if (childNode.Name == "B")
{
return TokenType.Bold;
}
I want to do it with regex.