Re: Regsub and string mapping

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Removing a } Re: Regsub and string mapping

#59139
Anonymous
Participant

    Joe,

    When you escaped the [ character, did you enclose it with curly braces?

    hcitcl>set a “123[456”

    hcitcl>echo $a

    123[456

    hcitcl>regsub -all {[} $a “” b

    1

    hcitcl>echo $b

    123456

    Thanks…

    Tom Rioux

    The Methodist Hospital