regsub(3tcl) Tcl Built-In Commands regsub(3tcl) ______________________________________________________________________________ NAME regsub - SYNOPSIS regsub ?switches? exp string subSpec varName ______________________________________________________________________________ DESCRIPTION string exp string varName ( re_syntax ) string varName string exp subSpec subSpec ``&''``\0'' string exp subSpec ``\n'' n 1 9 string n exp subSpec ``&''``\0''``\n'' subSpec Tcl subSpec subSpec regexp - : -all string exp -all``&''``\n'' -expanded (expanded) (?x) (see METASYNTAX, below). -line `[^' `.'`^'`$' -linestop -lineanchor (?n) (see METASYNTAX, below). -linestop `[^'`.' (?p) (see METASYNTAX, below). -lineanchor `^'`$'("") (?w) (see METASYNTAX, below). -nocase Upper-case characters in string will be converted to lower- case before matching against exp; however, substitutions specified by subSpec use the original unconverted form of string. | -start index | `^'| \A index index | -- - exp regexp SEE ALSO regexp(n), re_syntax(n) KEYWORDS match, pattern, regular expression, substitute [] [] 2001/10/27 Linux man : http://cmpp.linuxforum.net man man https://github.com/man-pages-zh/manpages- zh Tcl 8.3 regsub(3tcl)