Most programming languages, especially C++, treat underscores as correct symbol of an identifier.
However, while searching for an identifier with underscore, "Match whole words" flag is disabled, bringing some frustration.
I see 3 ways to fix this problem:
A) add '_' to the fixed list of word characters unconditionally
B) add '_' to the list of word characters via (per-document-class) some flag
C) treat 'whole words' flag more like grep does, i.e. make it work even when search string contains some non-word characters
Either way is OK for me, please do something
"Match whole words" does not accept underscores in
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
use as regex to find whole words including underscores
Code: Select all
\b[a-zA-Z0-9_]+\b