regexp(3tcl) Tcl Built-In Commands regexp(3tcl) ______________________________________________________________________________ NAME regexp - SYNOPSIS regexp ?switches? exp string ?matchVar? ?subMatchVar subMatchVar ...? ______________________________________________________________________________ DESCRIPTION exp string -inline () 1 0( re_syntax ) string string exp MatchVar exp string subMatchVar exp string subMatchVar exp string regexp - : -about -expanded (expanded) (?x) (see METASYNTAX, below). -indices subMatchVar string string -line `[^' `.'`^'`$' -linestop -lineanchor (?n) (see METASYNTAX, below). -linestop `[^'`.' (?p) (see METASYNTAX, below). -lineanchor `^'`$'("") (?w) (see METASYNTAX, below). -nocase string | -all | -inline | -inline | | -all(iteration):| regexp -inline -- {\w(\w)} " inlined " | => {in n} | regexp -all -inline -- {\w(\w)} " inlined " | => {in n li i ne e} | -start index `^'| index | -indicesindex| -- - exp subMatchVar exp exp (), -indices subMatchVar ``-1 -1'' SEE ALSO re_syntax(n), regsub(n) KEYWORDS match, regular expression, string [] [] 2001/10/27 Linux man : http://cmpp.linuxforum.net man man https://github.com/man-pages-zh/manpages- zh Tcl 8.3 regexp(3tcl)