SYNOPSIS
package require nre ?2.0?
nresub ?switches? exp string subSpec varName
nresub -eval ?switches? exp string subSpec varName evalName
DESCRIPTION
This command matches the regular expression exp against
string,
and it copies string to the variable whose name is
given by varName.
If there is a match, then while copying string to varName
the portion of string that
matched exp is replaced with subSpec.Instead of using the standard regular expression package it uses
the package described in the nrematch man page.
If the initial arguments to nresub start with - then
they are treated as switches. The following switches are
currently supported: