Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about regsub

Read more about regsub

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - regsub

Tcl string compare and replace with asterisk

I want to compare two strings in TCL and replace the unmatched character with asterisk. Core_cpuss_5/loop2/hex_reg[89]cpu_ip[45]_reg10/D[23] Core_cpuss_5/loop2/hex_reg[56]cpu_ip[12]_reg5/D[33] Output ...
test-img

gstekboy

string

tcl

string-matching

regexp-replace

regsub

Votes: 0

Answers: 1

Latest Answer

To replace the integers inside the square brackets with * (and also change reg10 and reg5 to reg*) set string1 {Core_cpuss_5/loop2/hex_reg[89]cpu_ip[45]_reg10/D[23]} set string2 {Core_cpuss_5/loop2/he...
test-img

Chris Heithoff

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved