Title
varsearch -- Search variable names and labels
Syntax
varsearch [varlist], find(string) [label]
Description
varsearch searches either variable names or labels for a specified regular expression, displaying all the variables that match and returning the list of those variables in r(varlist).
Options
find(string) specifies the string the search for. The specified string supports the use of regular expressions in the search.
label specifies that variable labels are to be searched. By default, varsearch searches variable names.
Examples: varsearch
. sysuse auto . varsearch, find(Car type) label . varsearch, find(rep[0-9][0-9])
Author
Jeffrey Arnold Payments Studies Function, Federal Reserve Bank of New York jeffrey.arnold@ny.frb.org
Also see
Online: regex, varlist