Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open Bracket error 1

Status
Not open for further replies.

NetworkGhost

IS-IT--Management
Apr 12, 2005
1,324
US
Trying to use regsub to replace a bracket in a string:

regsub -all \] $htmldiv2 {A} repchar

Keep getting the open bracket error. Anybody have any ideas?

 
Code:
set reg {http://[check this]].stuff.out.com}
http://[check this]].stuff.out.com
(?) 50 % regsub -all {]} $reg ""
http://[check this.stuff.out.com

HTH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top