The following makes sense (though you can't see the contents of debug.cpp).
$ grep '^[A-Za-z_]' debug.cpp float CheckExistence(); entity Findgoal(float gno); void RPrint(const string& msg); void MakeMeDebug(entity who); void dremove(entity te) void display_location() void RPrint(const string& msg) void MakeMeDebug(entity who)
Now, when I add
.*, as follows...
$ grep '^[A-Za-z_].*' debug.cpp
I get 8 blank lines as the result (which I can't seem to make this website display). Strongly suspecting a bug, I updated to the latest grep (version 2.25), and it does the same thing. I am using Ubuntu.
If my understanding is correct, my regular expression says: "Match lines starting with the letters A to Z, case-insensitive, or underscore, followed by anything, including nothing."
Is this a bug? Or am I doing something wrong?