*! version 1.0 08 July 2016
help for regexunabversion 1.0 (08 July 2016)

Title

regexunab -- A replacement for Stata's unab. In contrast to unab, regexunab treats
each search string provided as a regular expression, making variable name resolving more sophisticated an data management.

Table of contents

Syntax
Description
Options
Remarks
Examples
Author
Also see

Syntax

Expand and unabbreviate regular expression variable lists

regexunab lmacname : searchname [,
min(#) max(#)
name(string)]

Description

regexunab is a replacement for Stata's command unab, allowing for regular expressions
as searchname instead of an (abbreviated) varlist. This allows for more sophisticated unabbreviation of complex
variable lists. All options that could be used with unab also can be used with regexunab.

Options

min(#) specifies the minimum number of variables
allowed. The default is min(1).

max(#) specifies the maximum number of variables
allowed. The default is max(32000).

name(string) provides a label that is used when
printing error messages.

Remarks

This command is part of the NEPmgmt bundle, written to help creating the NEPS dataset files.

The source code of the program is licensed under the GNU General Public License version 3 or later.
The corresponding license text can be found on the internet at http://www.gnu.org/licenses/ or in gnugpl.

Examples

Unabbreviate a variable list of all variable names beginning with the letter m:

. sysuse auto

. regexunab mylist : ^m

Unabbreviate a variable list of all variable names ending in numbers:

. webuse fullauto

. regexunab mylist : [0-9]$

Unabbreviate a variable list of all variable names beginning with the letter r and ending in numbers:

. webuse fullauto

. regexunab mylist : ^r.*[0-9]+$

Author

Daniel Bela (daniel.bela@lifbi.de),
Leibniz Institute for Educational Trajectories (LIfBi), Germany.

Also see

NEPSmgmt (if installed), unab, regular expressions