Nre Package Commands


NAME

nreswitch - Evaluate one of several scripts, depending on a given value

SYNOPSIS

package require nre ?2.0?
nreswitch ?options? string pattern body ?pattern body ...?
nreswitch ?options? string {pattern body ?pattern body ...?}

DESCRIPTION

The nreswitch command is just like the switch command except that if the -regexp is used then the regular expression package described in the nrematch man page is used.

Note that even though the -nocase switch is not supported you can do case-insensitive matches by starting the regular expression pattern with (?i).

KEYWORDS

switch, match, nre, regular expression

Last change: 2.0

[ nre2.0 ]

Copyright © 1997 Darrel Schneider.