About 8,270 results
Open links in new tab
  1. regsub - tcl-lang.org

    regsub matches string against the regular expression exp, performing substitutions according to subSpec, and either returns the resulting string. If varName is given, the resulting string is …

  2. regsub manual page - Tcl Built-In Commands

    regsub — Perform substitutions based on regular expression pattern matching regsub ? switches? exp string subSpec ? varName? This command matches the regular expression exp …

  3. Tcl Built-In Commands - regsub manual page - tcl-lang.org

    regsub - Perform substitutions based on regular expression pattern matching SYNOPSIS regsub ?switches? exp string subSpec ?varName? DESCRIPTION This command matches the …

  4. Tcl regexp and regsub - Regular Expressions in Tcl

    Apr 14, 2025 · With the regsub command, you can replace regular expression matches in a string. regsub ?switches? regexp subject replacement ?resultvar? Just like the regexp command, …

  5. tcl Tutorial => Substitution

    The regsub command is used for regular expression matching and substitution. set mydata {The yellow dog has the blues.} # create a new string; only the first match is replaced. set newdata …

  6. Beyond regsub: Alternative Text Manipulation Techniques in Tcl/Tk

    Mar 16, 2025 · In Tcl/Tk, regsub is a versatile command that allows you to search for patterns within a string and replace them with a specified substitution. It's a fundamental tool for text …

  7. regsub manual page - Tcl Built-In Commands

    This command matches the regular expression exp against string, and either copies string to the variable whose name is given by varName or returns string if varName is not present. (Regular …

  8. regexp - tcl-lang.org

    Aug 5, 2010 · regexp , a built-in Tcl command, matches a regular expression in a string. regexp ?switches? expr string ?matchVar? ?subMatchVar subMatchVar ...? About regular …

  9. Tcl Built-In Commands - regsub manual page - Tcl/Tk …

    regsub-all {\mfoo\M} $string bar string or (using the “basic regular expression” syntax): regsub-all {(?b)\<foo\>} $string bar string. Insert double-quotes around the first instance of the word …

  10. Regsub Match Line V4 - tcl-lang.org

    Mar 28, 2024 · The regsub command in Tcl (Tool Control Language) performs substitutions based on regular expression pattern matching. Let’s dive into its usage and provide some examples: …

Refresh