Posted on

RED how to find a non-pointer variable


This means find the variable named “var” of type “VarType_t”

The variable must be defined on its own line because the ^\s* means find the line that starts with zero or more blank spaces or tabs.

The variable cannot be a pointer because the type is followed by [^\*]+ which means match any character except for ‘*’ one or more times